requirejs加载css
来源:互联网 发布:路由器域名重定向设置 编辑:程序博客网 时间:2024/04/30 05:16
https://github.com/guybedford/require-css 下载到require-css包
html
<!DOCTYPE html><html><head><meta charset="utf-8" /><meta name="viewport"content="width=device-width, initial-scale=1, user-scalable=no" /><meta name="manifest" content="version.json" /><meta content="email=no" name="format-detection" /><meta content="telephone=no" name="format-detection" /><title></title></head><body><div class="alert alert-warning alert-dismissible fade in" role="alert"><button type="button" class="close" data-dismiss="alert"aria-label="Close"><span aria-hidden="true">×</span></button><strong>Holy guacamole!</strong> Best check yo self, you're notlooking too good.</div><script data-main="js/config.js"src="assets/lib/require/require.min.js" type="text/javascript"></script></body></html>
config.js
require.config({ baseUrl: 'js', map: { '*': { 'css': 'require/css' } }, paths: { jquery: 'jquery', bootstrap: 'bootstrap/bootstrap.min', 'bootstrap-table': 'bootstrap-table' }, shim: { bootstrap: { deps: ['jquery', 'css!../css/bootstrap.min'], }, 'bootstrap-table': { deps:['jquery', 'css!../css/bootstrap-table'], exports: 'bootstrap-table' } }, waitSeconds: 50});requirejs(['jquery', 'bootstrap'], function ($, bootstrap) { });
访问html页面即可查看
0 0
- requirejs加载css
- RequireJS模块化加载
- RequireJS模块化加载
- Requirejs模块化加载
- requirejs加载vue
- 使用 RequireJS 加载 AngularJS
- RequireJS加载js文件
- requirejs加载文件
- RequireJS模块化加载
- js模块化加载(requirejs)
- angularjs+requirejs按需加载
- karma requirejs 加载问题小记
- RequireJS核心--之模块加载
- 使用requireJS按需加载
- 如何使用requirejs加载html
- 如何使用requirejs加载html
- 使用requireJS按需加载
- 模块加载系统(requirejs)
- spark+eclipse环境搭建同时使用kmeans聚类
- 转载一篇关于图像处理的文章,很有用,感谢作者
- 胖子哥的大数据之路(16):大数据采集标准-我们到底需要什么样的数据?
- PHP文件处理--打开文件
- 解决listview与scrollview结合使用时出现的问题
- requirejs加载css
- 第六周项目1==分数类的雏形
- 基于halcon工业图像处理——初学
- 二叉树的部分操作
- hdu1432
- 文章标题
- Implementing a Neural Network from Scratch in Python – An Introduction
- ceshi
- 数据分析入门(谁说菜鸟不会数据分析)