【文件属性】:
文件名称:import-href:强制导入 HTML 文档
文件大小:3KB
文件格式:ZIP
更新时间:2021-06-01 23:12:21
JavaScript
导入-href
强制导入 HTML 文档。
安装
$ npm install --save import-href
用法
var importHref = require ( 'import-href' ) ;
importHref ( 'http://example.com/meow-component.html' ,
function onLoad ( ) { } ,
function onError ( ) { } ) ;
应用程序接口
importHref(href, onload, onerror)
href
网址
必需的类型: string
需要导入的href URL。
负载
加载回调
类型: function
load后执行的回调函数
出错
错误回调函数
类型: function
出现error执行的回调函数
执照
麻省理工学院 :copyright:
【文件预览】:
import-href-master
----.jshintrc(170B)
----.gitattributes(12B)
----license(1KB)
----.editorconfig(231B)
----.gitignore(13B)
----index.js(440B)
----readme.md(698B)
----package.json(460B)