Skip to content

Instantly share code, notes, and snippets.

View neoFelhz's full-sized avatar

neo Felhz neoFelhz

View GitHub Profile
@willerce
willerce / ResLoader.js
Last active July 3, 2018 14:01
保存 Javascript 和 CSS 到 LocalStorage 中
var Loader = (function () {
function Loader(options) {
this.options = options;
if (resource.scripts && resource.baseUrl) {
for (var i = 0; i < this.options.scripts.length; i++) {
this.load('js', this.options.scripts[i]);
}
for (var i = 0; i < this.options.stylesheets.length; i++) {
this.load('css', this.options.stylesheets[i]);
}