LoginSignup
0

More than 1 year has passed since last update.

ローカルのHTMLファイルで #javascript の export を実行してみる

Last updated at Posted at 2019-09-14

html

<script type="module">

import { message } from 'https://codepen.io/yumainaura/pen/dybKxgo.js';

console.log(message)

</script>

適当なディレクトリに置いてブラウザで開く

file:///private/tmp/js/import.html

chrome の developer tool で確認

image

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

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
0