NI-Lab.

nilog:

← 前の日 2015-11-08 次の日 →
← 一年前 一年後 →
Twitter (2015-11-08)
Table 40 (Informative) — Import Forms Mappings to ImportEntry Records

ECMAScript 2015 Language Specification http://www.ecma-international.org/ecma-262/6.0/index.html#table-40
[t] 2015-11-08 13:05:44
関連するかも情報
@FlRSThikonya ( ´ ▽ ` )ノ
[t] 2015-11-08 12:59:59
Table 40 (Informative) — Import Forms Mappings to ImportEntry Records

ECMAScript 2015 Language Specification http://www.ecma-international.org/ecma-262/6.0/index.html#table-40
[t] 2015-11-08 13:05:44
Table 42 (Informative) — Export Forms Mappings to ExportEntry Records

ECMAScript 2015 Language Specification http://www.ecma-international.org/ecma-262/6.0/index.html#table-42
[t] 2015-11-08 13:06:12
ECMAScript 2015 (ES6) の import 構文。

「import myModule from "my-module.js"」

import - JavaScript | MDN https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Statements/import
[t] 2015-11-08 13:09:12
「default export で export した場合は、import する時に import の対象をブレース {……} で囲む必要はなく」

2015 年の JavaScript と babel の話 http://magazine.rubyist.net/?0050-ECMAScript2015
[t] 2015-11-08 13:11:54
Node.js v5.0.0 でもまだ import export は使えないのかな。

“SyntaxError: Unexpected token import”
[t] 2015-11-08 13:38:00
あれ。 babel パッケージだけじゃダメらしい。

$ npm install -g babel

$ babel
The CLI has been moved into the package `babel-cli`.

$ npm install -g babel-cli
[t] 2015-11-08 13:42:35
コマンドラインから使うには babel-cli パッケージをインストールすればOK

$ npm install -g babel-cli

$ babel --version
6.1.2 (babel-core 6.1.2)
[t] 2015-11-08 13:43:46
ほんのひと月前には $ npm install -g babel で良かったのになぁ。

[ヅ] Babel をインストールして ECMAScript 6 のシンプルなコードを試す (2015-10-02) http://www.nilab.info/z3/20151002_01_babel_ecma_script_6_hello_world.html
[t] 2015-11-08 13:44:31
“SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode”
[t] 2015-11-08 13:56:37
名古屋の天気(雨)
降水強度: 5.25(mm/h)
2015年11月08日 14時00分の雨雲 http://map.yahoo.co.jp/maps?layer=weather&v=3&lat=35.1707221&lon=136.881487&z=10 #雨雲bot #bot http://twitter.com/nilab/status/663218659544817669/photo/1
名古屋の天気(雨) 降水強度: 5.25(mm/h)  2015年11月08日 14時00分の雨雲  #雨雲bot #bot
元の画像を見る
[t] 2015-11-08 13:57:05
[話題急上昇中ワード]
1. 桐生第一
2. サンジャポ
3. 東日本女子駅伝
4. レセプト債
5. サトノダイヤモンド
6. 雨
7. フィギュアスケートTV
8. 柏木湊太
http://searchranking.yahoo.co.jp/realtime_buzz/ #buzzbot
[t] 2015-11-08 14:05:04
“Sometimes this is not acceptable; many want their module to be an instance of some class.”

Modules Node.js v5.0.0 https://nodejs.org/api/modules.html
[t] 2015-11-08 14:07:41
Node.js では class に module.exports が使えない?

“Sometimes this is not acceptable; many want their module to be an instance of some class.”
[t] 2015-11-08 14:07:51
module.exports = Hoge って class 名を指定したら、require したほうでは Function になってた。
[t] 2015-11-08 14:09:29
require の書き方をまちがえてた。 class は Function なのね。

var Hoge = require("./hoge");
var h = new Hoge();
[t] 2015-11-08 14:16:06
名古屋の天気(雨)
降水強度: 3.63(mm/h)
2015年11月08日 15時15分の雨雲 http://map.yahoo.co.jp/maps?layer=weather&v=3&lat=35.1707221&lon=136.881487&z=10 #雨雲bot #bot http://twitter.com/nilab/status/663233757520879616/photo/1
名古屋の天気(雨) 降水強度: 3.63(mm/h)  2015年11月08日 15時15分の雨雲  #雨雲bot #bot
元の画像を見る
[t] 2015-11-08 14:57:04
class 構文は strict モードでないと使えない。

[ヅ] Node.js v5.0.0 で ECMAScript 2015 (ES6) の class を使ってみる (2015-11-08) http://www.nilab.info/z3/20151108_01_node_js_es6_class.html
[t] 2015-11-08 15:11:05
名古屋の天気(雨)
降水強度: 5.75(mm/h)
2015年11月08日 15時55分の雨雲 http://map.yahoo.co.jp/maps?layer=weather&v=3&lat=35.1707221&lon=136.881487&z=10 #雨雲bot #bot http://twitter.com/nilab/status/663248855597584385/photo/1
名古屋の天気(雨) 降水強度: 5.75(mm/h)  2015年11月08日 15時55分の雨雲  #雨雲bot #bot
元の画像を見る
[t] 2015-11-08 15:57:04
名古屋の天気(雨)
降水強度: 9.75(mm/h)
2015年11月08日 17時50分の雨雲 http://map.yahoo.co.jp/maps?layer=weather&v=3&lat=35.1707221&lon=136.881487&z=10 #雨雲bot #bot http://twitter.com/nilab/status/663263956669075456/photo/1
名古屋の天気(雨) 降水強度: 9.75(mm/h)  2015年11月08日 17時50分の雨雲  #雨雲bot #bot
元の画像を見る
[t] 2015-11-08 16:57:04
2015年11年08日のnilogをすべて表示する

- NI-Lab.
- Mastodon (@nilab@mastodon-japan.net)
- Twitter (@nilab)
- Timelog (@nilab)
- はてなブックマーク (id:nilab)

Web Services by Yahoo! JAPAN