Giter VIP home page Giter VIP logo

require.js's Introduction

require.js例子图片

image image image

快速入门require.js

1、先配置main.js //因为require全部配置都在这里

2、在.html引入  require.js 和 main.js两个文件

3、在script 标签 用 require([],function(){}),把所需引进来

image

require.js例子结构

- require
    - css       //bootstrap.css
    - images    //忽略
    - js
        - plugin //插件
        - a.js
        - b.js
        - c.js
        - main.js
    index1.html //例子1
    index2.html //例子2,用bootstrap
    index3.html //例子3,把c.js引入到b.js,然后显示出来



学习require.js链接

segmentfault总结

阮一峰老师总结

require.js's People

Contributors

summer-lin 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.