2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Javascript・ES6メモ(随時追加)

Last updated at Posted at 2018-02-03

#exportとrequire
デフォルトエクスポートの時に、require()の後に.defaultをつけないと読み込まれなかった。

//export.js(export側)
export default class MyClass
{
   //
}

//import.js(import側)
const MyClass = require('./export').default

#グローバル変数

・Javascript

top, window, parent, frames, self

・node.js

node.js
global, GLOBAL, root

#要素の移動
scrollIntoView()メソッドを使う。

element.scrollIntoView({
  behavior: 'smooth',
  block: 'center',
  inline: 'center',
});

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?