不是按需加载。
是按条件加载,是这样的。页面上有这个:
1 2 3 4 |
|
因为placeholder有用到jquery,而jquery是requirejs的依赖那里加载的,placeholder先于jquery加载了。
要怎么写?根据浏览器判断,符合的话,才添加placeholder依赖。
大家讲道理2017-04-10 14:43:00
http://stackoverflow.com/questions/21097238/loading-ie-dependencies-with-requirejs
大家讲道理2017-04-10 14:43:00
1 2 3 4 5 6 |
|
1 2 3 4 5 6 7 8 9 |
|