Giter Site home page Giter Site logo

localresource's Introduction

静态资源本地化缓存方案

使用

引入 localResource.js

<script src="https://g.alicdn.com/dingding/dingtalk-pc-api/2.7.0/index.js" type="text/javascript" charset="utf-8" ></script>

在html中加入下面的代码

window.localResource.init({
    noCache: false,
    version: '20170901',
    resourceList: [
        '//g.alicdn.com/platform/tingle-ui/1.1.12/salt-ui.min.css',
        '//g.alicdn.com/platform/c/??jquery/1.11.3/dist/jquery.min.js,lodash/4.6.1/lodash.min.js,react/0.14.3/react-with-addons.min.js,react/0.14.3/react-dom.min.js,react-router/2.8.1/umd/ReactRouter.min.js,reflux/5.0.4/dist/reflux.min.js,lie/3.0.2/dist/lie.polyfill.min.js,natty-storage/1.1.1/dist/natty-storage.min.js,natty-fetch/2.2.0/dist/natty-fetch.pc.min.js',
        '//g.alicdn.com/dingding/dingtalk-pc-api/2.7.0/index.js',
        '//g.alicdn.com/platform/tingle-ui/1.1.12/salt-ui.min.js',
        './app.js',
        './app.css'
    ]
})

localresource's People

Contributors

wangyang-rex avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.