随笔分类 -  WEB

摘要:daysBetween(DateOne, DateTwo) { var OneMonth = DateOne.substring(5, DateOne.lastIndexOf('-')); var OneDay = DateOne.substring(DateOne.length, DateOne. 阅读全文
posted @ 2019-03-24 18:06 沧海一粟95 阅读(320) 评论(0) 推荐(0)
摘要:1.超出部分影藏,打点。 white-space:nowrap; //强制不换行(中英文都起作用)white-space:pre-wrap; //只对中文起作用,强制换行word-break:break-all; // 只对英文起作用,以字母作为依据,强制换行word-break:break-wor 阅读全文
posted @ 2018-12-25 23:31 沧海一粟95 阅读(278) 评论(0) 推荐(0)
摘要:this.pharmacyList[i].descript=this.pharmacyList[i].descript.replace(/<[^>]+>|&[^>]+;/g,"").trim().substring(0, 60); 过滤所有html标签还有特殊符号。 阅读全文
posted @ 2018-12-16 15:00 沧海一粟95 阅读(169) 评论(0) 推荐(0)
摘要:在 plus.screen.lockOrientation('portrait-primary'); //锁定 阅读全文
posted @ 2018-11-27 20:41 沧海一粟95 阅读(6522) 评论(1) 推荐(1)
摘要:1,文本框输入,不换行。 不能使用Input。需要使用textarea。 <input type="text" name="" value="这里写内容" /> <textarea name="a" >这里写内容</textarea> 阅读全文
posted @ 2018-11-22 10:06 沧海一粟95 阅读(207) 评论(0) 推荐(0)