【文件属性】:
文件名称:location-origin.js:[removed].origin 的 Polyfill
文件大小:8KB
文件格式:ZIP
更新时间:2021-06-24 01:19:57
JavaScript
location-origin.js
Polyfill
// On http://localhost:8888/path/to/page.html#hash?search=foobar
window . location . origin ; //=> "http://localhost:8888"
安装
包管理器
bower install location-origin
npm install location-origin
// You don't have to assign it to a variable.
// It automatically adds `origin` property to the [removed] object when it is `require`d.
require ( "shinnn/location-origin.js
【文件预览】:
location-origin.js-master
----LICENSE-MIT(1KB)
----.jshintrc(297B)
----.gitattributes(12B)
----bower.json(740B)
----src()
--------location-origin.coffee(341B)
----test.js(493B)
----.travis.yml(134B)
----gulpfile.js(1KB)
----README.md(2KB)
----LICENSE-UNLICENSE(1KB)
----dist()
--------location-origin.js(361B)
----component.json(475B)
----.editorconfig(188B)
----.gitignore(27B)
----package.json(2KB)