会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欢欢11
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
25
下一页
2020年8月19日
H5 video在移动端播放层级问题
摘要: <video class="videoItem" webkit-playsinline="true" x-webkit-airplay="true" playsinline="true" x5-video-player-type="h5" :src="item.photoUrl" x5-video-
阅读全文
posted @ 2020-08-19 11:50 欢欢11
阅读(1230)
评论(0)
推荐(0)
2020年8月18日
初始React
摘要: //在render前执行,并且执行一次 componentWillMount() { console.log('willMount') } //在render后执行,且执行一次 componentDidMount() { console.log("DidMount") } //初始化render不执
阅读全文
posted @ 2020-08-18 20:38 欢欢11
阅读(156)
评论(0)
推荐(0)
2020年7月30日
vue项目中开启调试
摘要: 1.把这段放在main.js中重启,手机上可以实现调试功能; (function () { var src = '//cdn.jsdelivr.net/npm/eruda'; // if (!/eruda=true/.test(window.location) && localStorage.get
阅读全文
posted @ 2020-07-30 15:38 欢欢11
阅读(2203)
评论(0)
推荐(0)
2020年7月29日
js实现四位插入逗号
摘要: 第一种: formatData(val) { if (val && val.toString().length > 4) { return val.toString().replace(/(.{4})/g, "$1,") } return val }, 第二种 fenGeString(str, nu
阅读全文
posted @ 2020-07-29 10:04 欢欢11
阅读(762)
评论(0)
推荐(0)
2020年7月22日
根据开始时间和结束时间实现倒计时效果
摘要: getDate() { var time_now_server, time_now_client, time_end, time_server_client; time_end = new Date("2020 07 22 18:50:50");//结束的时间 time_end = time_end
阅读全文
posted @ 2020-07-22 19:48 欢欢11
阅读(691)
评论(0)
推荐(0)
2020年4月27日
git 提交代码到码云
摘要: 1.打开项目,在项目中指向git init 初始化git仓库 2.把下面.gitignore这个文件复制到项目根目录下面,为了忽略不必要上穿的文件 node_modules /unpackage # local env files .env.local .env.*.local # Log file
阅读全文
posted @ 2020-04-27 17:56 欢欢11
阅读(187)
评论(0)
推荐(0)
2020年4月23日
uni-app使用阿里图标
摘要: 1.下载到本地 2.把iconfont.css复制到static目录下 3.删除多余文件,只保留一个src 4.使用
阅读全文
posted @ 2020-04-23 14:17 欢欢11
阅读(461)
评论(0)
推荐(0)
2020年4月19日
vue项目实现登录携带token
摘要: 1.用户第一次登录,调用后端登录接口,发送用户名和密码 2.后端验证用户名和密码是否正确,成功则返回token, 3.前端拿到token,将token存储在localStorge()和vuex中,并跳转到主页 4.前端每次跳转路由就判断localStorge中是否有token,没有就跳转到登录页 5
阅读全文
posted @ 2020-04-19 20:44 欢欢11
阅读(3950)
评论(0)
推荐(0)
Js前端面试题
摘要: 1.判断js类型的方法 1 typof() 2 可以判断出 string boolean undefiend number 3 但是判断typeof(null) 时值为object ,判断对象数组的时候也是objectObject.prototype.toString.call() 可以判断出所有类
阅读全文
posted @ 2020-04-19 20:12 欢欢11
阅读(397)
评论(0)
推荐(0)
2020年4月8日
ES6用法总结
摘要: 1.结构数组 function fast(){ return ['apple','orgin','big'] } //原始方式 let arry = fast(); let a = arry[0]; //es6 let [a,b,c] = fast(); console.log(a) // appl
阅读全文
posted @ 2020-04-08 22:45 欢欢11
阅读(191)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
···
25
下一页
公告