随笔分类 -  JS方法封装

摘要:var common = { getQueryString : function(name){ var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); var r = ''; try{ r = location.href.split( 阅读全文
posted @ 2020-06-28 09:46 YJUI 阅读(316) 评论(0) 推荐(0) 编辑
摘要:HTML: //:ligit='ligit' 一致 <div id='app'> <template-swiper :ligit='ligit'></template-swiper> </div> <template id='tabs-list-t'> <ul> <li v-for='item,in 阅读全文
posted @ 2019-11-11 13:49 YJUI 阅读(601) 评论(0) 推荐(0) 编辑
摘要:(function(){ // $.extend()拓展方法: $.extend({ backgroundColor:function(){ $('body').css('background','#ccc'); } }) $.backgroundColor();// >就可以调用; })(f 阅读全文
posted @ 2019-07-11 17:08 YJUI 阅读(437) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示