Loading

随笔分类 -  javascript

摘要:最近在开发Hybrid APP时发现用系统默认的alert弹出框总会带有域名,用户体验就比较不好了。想了一种办法来解决就是覆盖alert的方法。 (function(){ window.alert = function(name){var iframe = document.createElemen 阅读全文
posted @ 2018-01-11 10:39 yaro-feng 阅读(487) 评论(0) 推荐(0)
摘要:var vm = new Vue({ el: '#complete-info', data: { provinceList: [], selectedProvince: "", cityList: [], selectedCity: "", ... 阅读全文
posted @ 2017-09-21 11:41 yaro-feng 阅读(227) 评论(0) 推荐(0)
摘要:http://www.oschina.net/code/snippet_12_46548 阅读全文
posted @ 2017-06-14 11:41 yaro-feng 阅读(282) 评论(0) 推荐(0)
摘要:点我 阅读全文
posted @ 2017-05-22 19:25 yaro-feng 阅读(4887) 评论(0) 推荐(0)
摘要:前端JavaScript规范 http://www.imooc.com/article/1402 http://greengerong.com/blog/2015/05/09/qian-duan-javascriptgui-fan/ 阅读全文
posted @ 2016-12-05 15:31 yaro-feng 阅读(138) 评论(0) 推荐(0)
摘要:判断一个是否是隐藏状态 $(curid).is(":visible") 响应回车 $("#password").keydown(function (e) { if (e.which == 13) { alert(123); } }); radio 去掉选中状态 $("#radio").removeA 阅读全文
posted @ 2016-11-18 14:19 yaro-feng 阅读(123) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2016-07-29 11:29 yaro-feng 阅读(143) 评论(0) 推荐(0)
摘要:获取当前时间 对时间进行加减操作 阅读全文
posted @ 2016-03-31 15:29 yaro-feng 阅读(511) 评论(0) 推荐(0)