2018年7月13日

better-scroll 外层可以用positon:fixed 内层只能用position:absolute,不能用positon:fixed

摘要: better-scroll 外层可以用positon:fixed 内层只能用position:absolute,不能用positon:fixed 阅读全文

posted @ 2018-07-13 10:59 luziluck 阅读(283) 评论(0) 推荐(0)

react中let一些数据是在render里,不是在retrun里

摘要: render() { let {chaisshow,inputplaceholder,inputvalue,searchinittitle} = this.state return ( <div className="wrap_search"> 数据 </div> ); } 阅读全文

posted @ 2018-07-13 10:09 luziluck 阅读(589) 评论(0) 推荐(0)

onClick和ontouchmove一个是pc端一个是移动端,但是还是不知道有什么具体差别

摘要: onClick和ontouchmove一个是pc端一个是移动端,但是还是不知道有什么具体差别 阅读全文

posted @ 2018-07-13 10:07 luziluck 阅读(234) 评论(0) 推荐(0)

react中reder->return里: 1.有引号输入内容为'123' 2.没有引号输入内容为<p>123</p>

摘要: react中reder->return里: 1. 有引号输入内容为'123' 2. 没有引号输入内容为<p>123</p> 阅读全文

posted @ 2018-07-13 10:06 luziluck 阅读(183) 评论(0) 推荐(0)

if( 1<a<5 )这种写法是错误的,计算机不认识。正确写法是( a>1 && a<5),要不然会有运算法呢

摘要: if( 1<a<5 )这种写法是错误的,计算机不认识。 正确写法是( a>1 && a<5),要不然会有运算法呢 阅读全文

posted @ 2018-07-13 10:04 luziluck 阅读(305) 评论(0) 推荐(0)

e.target

摘要: 1。 e.target如果获取到<li class="searchli">张三</li> <input type="text" value="123" />等元素 这个时候用javascript的原生方法和属性来获取需要的内容 如果需要获取 张三,则e.target.innerHTML 如果要获取元 阅读全文

posted @ 2018-07-13 09:58 luziluck 阅读(532) 评论(0) 推荐(0)

导航