开发项目跑在微信浏览器经常会遇到一个问题,微信浏览器下拉的时候会出现自带的黑色底色(显示网址)如下图: 此类事件是手机touchmove默认事件行为,可以通过js代码隐藏事件: 但这样往往会把页面原生的scroll效果也一同去掉了,下面的代码可以完美解决这个问题: 详情见:prevent-overs ...
分类:
微信 时间:
2018-06-08 12:19:38
阅读次数:
421
> mariadb安装 yum install mariadb-server > 创建相关目录,及设置权限 mkdir /mysqldb; mkdir /mysqldb/{3306,3307,3308}/{etc,socket,pid,log,data} -pv chown -R mysql:mys ...
分类:
数据库 时间:
2018-06-05 15:19:54
阅读次数:
253
POX启动时使用命令:openflow.discovery openflow.spanning_tree --no-flood --hold-down来自:https://openflow.stanford.edu/display/ONL/POX+Wiki/ 原文: openflow.spannin ...
分类:
其他好文 时间:
2018-05-30 21:07:25
阅读次数:
233
1、获取滚动条滚动的距离 document.documentElement.scrollTop || document.body.scrollTop 2、获取非行间样式 function getStyle(obj,attr){ if(obj.currentStyle){ return obj.cur ...
分类:
Web程序 时间:
2018-05-30 17:32:30
阅读次数:
200
<url-pattern>/*</url-pattern> The /* on a servlet overrides all other servlets, including all servlets provided by the servletcontainer such as the de ...
分类:
移动开发 时间:
2018-05-30 01:18:55
阅读次数:
222
Wooden outdoor furniture depends on protective finish to stand strong and prevent damage against UV rays and moisture. By applying the best and standa ...
分类:
其他好文 时间:
2018-05-28 14:47:24
阅读次数:
176
首先为了防止事件触发默认行为,我们需要去禁止,安全的禁止方法: 三个事件: 移动开始和结束的坐标获取: 样例: 对应pc端鼠标操作: ...
分类:
移动开发 时间:
2018-05-26 16:43:43
阅读次数:
6748
对于常见的搜索需求业务场景,用户输入完成后,点击enter事件请求数据,要求不提交页面,实现数据局部更新,这需要用到react中的表单Forms。 处理方法: (1)html书写 form标签中去掉action参数,定义onSubmit方法,如下所示: (2)事件处理 关键的是阻止掉页面默认提交: ...
分类:
其他好文 时间:
2018-05-25 17:51:10
阅读次数:
490
Do you like painting? Little D doesn't like painting, especially messy color paintings. Now Little B is painting. To prevent him from drawing messy pa ...
分类:
其他好文 时间:
2018-05-04 21:58:41
阅读次数:
191
原文链接 https://www.cnblogs.com/OpenCoder/p/4434574.html 内容 UI Example Consider the example below. A button click will initiate a REST call and display t ...