摘要: 使用MUI框架,在上拉加载和下拉刷新的时候会出现下面的异常: 解决办法: 方法1)在touch的事件监听方法上绑定第三个参数{ passive: false }, 通过传递 passive 为 false 来明确告诉浏览器:事件处理程序调用 preventDefault 来阻止默认滑动行为。 方法2 阅读全文
posted @ 2019-01-03 21:33 小余哥 阅读(2706) 评论(0) 推荐(0) 编辑
摘要: 判断文件类型 var type=(src.substr(src.lastIndexOf("."))).toLowerCase(); if(type!=".jpg"&&type!=".gif"&... 阅读全文
posted @ 2018-12-02 14:20 小余哥 阅读(1179) 评论(0) 推荐(0) 编辑
摘要: 问题:You can't specify target table for update in FROM clause 含义:不能在同一表中查询的数据作为同一表的更新数据。 注意:这个问题只出现于mysql,mssql和oracle不会出现此问题。 修改后代码: 查询数据结果集中再套一层 PS:感谢 阅读全文
posted @ 2018-11-24 20:43 小余哥 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 在做用户注册的时候因为密码输入框 input type=“password”造成的,用户名密码总是自动填充,加上autocomplete="off"也无效,后面找到一种简单的解决方法,不多说看代码: 解决方法: 1、type="password"改成type="text" 2、给input标签添加自 阅读全文
posted @ 2018-10-21 11:39 小余哥 阅读(2008) 评论(0) 推荐(1) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-17 10:05 小余哥 阅读(0) 评论(0) 推荐(0) 编辑
摘要: @media (device-height:480px) and (-webkit-min-device-pixel-ratio:2){ .class{}/* 兼容iphone4/4s */}@media (device-height:568px) and (-webkit-min-device-p 阅读全文
posted @ 2018-10-17 10:00 小余哥 阅读(335) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2018-10-15 11:10 小余哥 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-10-15 11:07 小余哥 阅读(594) 评论(1) 推荐(0) 编辑
摘要: 方法步骤: 1、用SSH登录mysql,使用命令查看mysql的默认编码。 命令:show variables like 'character_set_%'; 2、进入配置文件修改配置内容,执行命令:vi /etc/my.cnf 3、修改配置文件的内容,在[mysqld]结束位置添加:charact 阅读全文
posted @ 2018-10-15 10:59 小余哥 阅读(5034) 评论(1) 推荐(0) 编辑
摘要: 其中 order-item为a标签的类名 阅读全文
posted @ 2018-09-17 16:54 小余哥 阅读(524) 评论(0) 推荐(0) 编辑