共 46 篇文章 |
|
上面代码中,IntersectionObserver是浏览器原生提供的构造函数,接受两个参数:callback是可见性变化时的回调函数,option是配置对象(该参数可选)。 阅69 转0 评0 公众公开 21-03-22 09:25 |
mint-ui Datetime picker 不显示的问题。现象:浏览器端显示正常,手机端微信里也正常,浏览器里日期框是空白。原因:没能继承父容器宽度。解决:/deep/ .picker-items{width:100%; 阅829 转0 评0 公众公开 20-05-07 15:55 |
replace(".","$#$").replace(/\./g,"").replace("$#$",".");var str=e.target.var result="";for (var i = 0;i <str.if (str.charCodeAt(i)==12288) {result+= String.fromCharCode(str.charCodeAt(i)-12256);charCodeAt(i)>65280 && str.charCodeAt(i)<65375) ... 阅43 转0 评0 公众公开 20-04-22 16:59 |
阅75 转1 评0 公众公开 18-08-14 16:29 |
b、Java代码 function Animal(){ this.name = "Animal"; this.showName = function(){ alert(this.name); } } function Cat(){ this.name = "Cat"; } var animal = new Animal(); var cat = new Cat(); //通过call或apply方法,将原本属于Animal对象... 阅38 转1 评0 公众公开 16-12-28 15:18 |
阅34 转0 评0 公众公开 16-12-15 10:58 |
阅441 转1 评0 公众公开 16-09-28 10:57 |
cordova/phonegap/webapp性能优化方法。做了几个cordova的项目,觉得webapp性能的确是比不上原生,在IOS上还好,安卓上特别的明显.技术群里面很多人都在说cordova是个渣,没用之类的.其实只是很多人没有深入去了解,做点小优化,一般的增删改查APP还是完全能够满足性能要求的.不要让界面等数据,先加载界面,再加载数据.如CSS跟html写前面,JS写后面.aja... 阅58 转0 评0 公众公开 16-08-01 12:42 |
}div.justify >span {<div class="justify">hello, text justify.</div><br/><div class="justify"> hello, text justify.<span></span></div><br/><div class="justify">中 文 两 端 对 齐</div><br/><div class="justify"... 阅2365 转3 评0 公众公开 16-06-28 12:01 |