Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 436 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 436 Bytes

loadJS

A function for loading JS files

Install

npm install yazhouzou-loadjs --save

Usage

  1. Load a js file
import loadJS from 'yazhouzou-loadjs'

loadJS(
  '/path/to/file.js',
  function () { /* file.js loaded */ },
  function () { /* file.js failed */ }
)