摘要: $(function(){ $('input').on('input propertychange',function(){ if(($.trim($('.add1').val())!=="")&&($.trim($('.add2').val())!=="")&&($.trim($('.add3').val())!=="")&&($.trim($('.add4').val... 阅读全文
posted @ 2017-05-18 15:14 永往 阅读(3268) 评论(0) 推荐(0) 编辑
摘要: var lis=jQuery('#click1 li'); for(var k=0;k<lis.length;k++){ jQuery('#click1 li').on('tap',function(){ var aa=jQuery(this).index(); var pngurl = 'imag 阅读全文
posted @ 2017-05-09 15:52 永往 阅读(305) 评论(0) 推荐(0) 编辑
摘要: // 防止页面后退//阻止安卓机后退// 页面载入时使用pushState插入一条历史记录history.pushState(null, null, '#' );console.log('刷新');window.addEventListener('popstate', function(event) 阅读全文
posted @ 2017-05-08 12:58 永往 阅读(3897) 评论(0) 推荐(1) 编辑
摘要: document.body.addEventListener('touchend', function(evt) { document.activeElement.blur(); }); 阅读全文
posted @ 2017-05-08 12:50 永往 阅读(251) 评论(0) 推荐(0) 编辑
摘要: style="overflow: auto;-webkit-overflow-scrolling: touch; 这个可以让页面在Native端滚动时模拟原生的弹性滚动效果 下面是微信浏览器禁止页面下拉查看网址(不影响页面内部scroll) 阅读全文
posted @ 2017-04-28 17:27 永往 阅读(2999) 评论(1) 推荐(0) 编辑
摘要: 苹果端用1,2,之后解决不了readonly失效问题(点击的时候会有光标出现)(且不方便用disabled的时候),就用3, 1, $("#appDateTime").focus(function(){ document.activeElement.blur(); }); 2, onselectst 阅读全文
posted @ 2017-04-28 11:52 永往 阅读(1836) 评论(0) 推荐(0) 编辑
摘要: https://nodejs.org/dist/v6.2.0/node-v6.2.0-x64.msi sublime格式化 阅读全文
posted @ 2017-04-27 10:32 永往 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 如图所示,点击留言区管理,此一级菜单下的内容会展开,其他一级菜单内容相应关闭。 阅读全文
posted @ 2017-04-26 09:40 永往 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 效果为:当input值为0时,右侧图片字体均为为暗色,当input值>0时,右侧图片及文字均变色; 当值为1-5/6-10/11-15时,小图标显示的数量为相应的数字和相应的星星/砖石/皇冠。小图标数量最多为5个。 如图所示: html代码为: js代码为: 阅读全文
posted @ 2017-04-24 13:15 永往 阅读(432) 评论(0) 推荐(0) 编辑
摘要: <img> ///////////// 阅读全文
posted @ 2017-04-21 15:21 永往 阅读(871) 评论(0) 推荐(0) 编辑