会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
国服第一李师师
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
2018年7月12日
关于Vue懒加载问题
摘要: 有关Vue懒加载其实并不是想象的那么难和复杂: 首先引入 import VueLazyLoad from 'vue-lazyload'; 其次是使用 Vue.use(VueLazyLoad,{ error:require(['./assets/404.jpg']);loading:require([
阅读全文
posted @ 2018-07-12 19:32 国服第一李师师
阅读(1479)
评论(0)
推荐(0)
2018年7月11日
react子传父
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv
阅读全文
posted @ 2018-07-11 19:55 国服第一李师师
阅读(379)
评论(0)
推荐(0)
2018年6月17日
有关自动化构建gulp的搭建
摘要: 1,cnpm instal bower -g 2, cnpm install bower 3, bower init 生成bower.json文件 4, type null >.bowerrc//生成bower'r'c {"directory": "lib"}//新建一个文件夹lib复制进去。()
阅读全文
posted @ 2018-06-17 16:46 国服第一李师师
阅读(95)
评论(0)
推荐(0)
requirejs配置问题
摘要: <script src="lib/requirejs/require.js " data-main="js/main.js"> </script> 再入口文件main.js里面需: require.config({ shim:{ "bootstrap":{ exports:'bootstrap',
阅读全文
posted @ 2018-06-17 16:27 国服第一李师师
阅读(256)
评论(1)
推荐(0)
2018年6月10日
设计模式()
摘要: //工厂模式 // function person(name,age){ // var obj = new Object(); // obj.name = name; // obj.age = age; // obj.showName = function(){ // return this.nam
阅读全文
posted @ 2018-06-10 12:50 国服第一李师师
阅读(118)
评论(1)
推荐(0)
获取数组中出现次数最多的数据及出现次数
摘要: Array.prototype.show=function(){ let _this=this; let arrs=[]; _this.forEach((val,index)=>{ let net=_this.indexOf(val,index+1) if(net 1){ arrs.push(val
阅读全文
posted @ 2018-06-10 12:20 国服第一李师师
阅读(1203)
评论(1)
推荐(0)
上一页
1
···
16
17
18
19
20
公告