摘要: 在swiper初始化里加 observer:true,observeParents:true 这两个参数 阅读全文
posted @ 2019-07-01 17:29 奋斗—青年 阅读(1110) 评论(0) 推荐(0) 编辑
摘要: <script> window.AESKey = ''; // 判断浏览器是否支持placeholder属性 function isSupportPlaceholder() { var input = document.createElement('input'); return 'placehol 阅读全文
posted @ 2018-09-05 12:04 奋斗—青年 阅读(361) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html ng-app="app" ng-controller="modalController"> <head> <title>ng-model模态框</title> </head> <link href="https://cdn.bootcss.com/boots 阅读全文
posted @ 2018-08-27 11:36 奋斗—青年 阅读(188) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2018-07-31 16:34 奋斗—青年 阅读(334) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <meta name="viewport" content="width=device-width,initial-scale 阅读全文
posted @ 2018-07-17 19:10 奋斗—青年 阅读(440) 评论(0) 推荐(0) 编辑
摘要: <ul> <li>1</li> <li>2</li> <li>3</li> </ul> <script> $('li').filter(function() {return $(this).text() '1'}).addClass('myclass'); </script> 阅读全文
posted @ 2018-07-13 14:17 奋斗—青年 阅读(78) 评论(0) 推荐(0) 编辑
摘要: var name, value; var str = location.href; //取得整个地址栏 var num = str.indexOf("?") str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ] 阅读全文
posted @ 2018-06-20 18:04 奋斗—青年 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1.后台返回的json数据 2.遍历方法 阅读全文
posted @ 2018-05-16 18:29 奋斗—青年 阅读(4527) 评论(0) 推荐(0) 编辑
摘要: JavaScript 1.HTML对象获取问题 FireFox:document.getElementById(“idName”); ie:document.idname或者document.getElementById(“idName”). 解决办法:统一使用document.getElement 阅读全文
posted @ 2017-12-07 10:52 奋斗—青年 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1、关于页面元素的引用 通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。 2、jQuery对象与dom对象的转换 只有jquery对象才能使用jquery定义 阅读全文
posted @ 2017-10-24 11:46 奋斗—青年 阅读(115) 评论(0) 推荐(0) 编辑