01 2020 档案

摘要:(0.66).toFixed(2)*100+'%' //66% 阅读全文
posted @ 2020-01-20 12:00 自律·给我自由 阅读(3263) 评论(0) 推荐(1) 编辑
摘要:如果在这种情况下无法实现跳转并出现can not navigate to tabBar page错误, 很有可能是由于在底部tabbar里面定义乐同样连接地址的bar,如果在底部footer页面定义了相同地址的bar,则此页面无法跳转, 解决方法: 使用uniapp或微信小程序的 uni.switc 阅读全文
posted @ 2020-01-17 19:34 自律·给我自由 阅读(17379) 评论(4) 推荐(5) 编辑
摘要:var d = new Date(); var youWant = time(d.getFullYear()) + '-' + time((d.getMonth() + 1)) + '-' + time(d.getDate()) + ' ' + time(d.getHours())+":"+ tim 阅读全文
posted @ 2020-01-15 15:46 自律·给我自由 阅读(450) 评论(0) 推荐(0) 编辑
摘要:/** *formatTime参数 * 第一个参数:时间戳,(必填项) * 第二个参数:日期间隔符,默认为 -,(选填) * 第三个参数:时分秒间隔符,默认为 :,(选填) * 第四个参数:是否携带时分秒,默认为 true,(选填) */ let time = formatTime(15792589 阅读全文
posted @ 2020-01-14 14:53 自律·给我自由 阅读(1479) 评论(0) 推荐(0) 编辑
摘要:RegExp(/^1[3456789]\d{9}$/).test('15535363781') //手机号验证 /** * 1.可以是中文 2.可以是英文,允许输入点(英文名字中的那种点), 允许输入空格 3.中文和英文不能同时出现 4.长度在20个字符以内 */ if (RegExp(/^([\u 阅读全文
posted @ 2020-01-13 16:53 自律·给我自由 阅读(194) 评论(0) 推荐(0) 编辑
摘要:废话不多说,直接上源码!!! <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> .chaxun-yanzhengma-btn{ border-radius: 4px; background-col 阅读全文
posted @ 2020-01-08 17:16 自律·给我自由 阅读(905) 评论(0) 推荐(0) 编辑
摘要:废话不多说,直接上源码!!! <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .img-box { width: 390px; height: 296px; ov 阅读全文
posted @ 2020-01-06 18:00 自律·给我自由 阅读(463) 评论(0) 推荐(0) 编辑
摘要:废话不多说,先上效果图,再上源码!!!! 1.效果图 2.源码 <template> <view class="content"> <scroll-view scroll-x="true" class="scroll"> <view class="box"> <image src="http://b 阅读全文
posted @ 2020-01-01 17:45 自律·给我自由 阅读(11442) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示