上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: 1.单行文本的溢出显示省略号 实现方法: overflow: hidden; text-overflow:ellipsis; white-space: nowrap; /** 内容溢出元素框会被修剪,并且其余内容是不可见的 **/ /* 超出部分省略号 */ /** 规定段落中的文本不进行换行 ** 阅读全文
posted @ 2020-02-05 15:18 自律·给我自由 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 1、安装依赖npm install v-viewer --save 2、全局引入 import Vue from 'vue'; import Viewer from 'v-viewer' import 'viewerjs/dist/viewer.css' Vue.use(Viewer) Viewer 阅读全文
posted @ 2020-02-04 15:29 自律·给我自由 阅读(1277) 评论(0) 推荐(0) 编辑
摘要: (0.66).toFixed(2)*100+'%' //66% 阅读全文
posted @ 2020-01-20 12:00 自律·给我自由 阅读(3258) 评论(0) 推荐(1) 编辑
摘要: 如果在这种情况下无法实现跳转并出现can not navigate to tabBar page错误, 很有可能是由于在底部tabbar里面定义乐同样连接地址的bar,如果在底部footer页面定义了相同地址的bar,则此页面无法跳转, 解决方法: 使用uniapp或微信小程序的 uni.switc 阅读全文
posted @ 2020-01-17 19:34 自律·给我自由 阅读(17236) 评论(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 自律·给我自由 阅读(444) 评论(0) 推荐(0) 编辑
摘要: /** *formatTime参数 * 第一个参数:时间戳,(必填项) * 第二个参数:日期间隔符,默认为 -,(选填) * 第三个参数:时分秒间隔符,默认为 :,(选填) * 第四个参数:是否携带时分秒,默认为 true,(选填) */ let time = formatTime(15792589 阅读全文
posted @ 2020-01-14 14:53 自律·给我自由 阅读(1464) 评论(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 自律·给我自由 阅读(897) 评论(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 自律·给我自由 阅读(353) 评论(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 自律·给我自由 阅读(11168) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 下一页