LoginSignup
2
0

More than 5 years have passed since last update.

chromeのコンソールでパッケージを試す

Last updated at Posted at 2019-05-01

はじめに

今回はdeepmergeを使う

公式ページからUMDのURLをコピーする

headにscriptタグを作って追加する関数を定義

const _loadScript = function (path) {
  let script = document.createElement('script');
  script.src = path;
  document.head.appendChild(script);
}

実行

_loadScript('https://unpkg.com/deepmerge@3.2.0/dist/umd.js');

スクリーンショット 2019-05-01 18.19.01.png

できないサイトもある

Githubではできなかった

スクリーンショット 2019-05-01 18.20.11.png

参考記事

Include JavaScript file in Chrome console

2
0
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
0