会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小前端
博客园
首页
新随笔
联系
订阅
管理
2019年7月1日
bootstrap中使用swiper冲突问题
摘要: 在swiper初始化里加 observer:true,observeParents:true 这两个参数
阅读全文
posted @ 2019-07-01 17:29 奋斗—青年
阅读(1157)
评论(0)
推荐(0)
2018年9月5日
判断IE10以下提示更换浏览器
摘要: <script> window.AESKey = ''; // 判断浏览器是否支持placeholder属性 function isSupportPlaceholder() { var input = document.createElement('input'); return 'placehol
阅读全文
posted @ 2018-09-05 12:04 奋斗—青年
阅读(372)
评论(0)
推荐(0)
2018年8月27日
angular.js+bootstrap模态框样式
摘要: <!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 奋斗—青年
阅读(196)
评论(0)
推荐(0)
2018年7月31日
jQuery实现的无限级树形菜单效果代码
摘要: <!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 奋斗—青年
阅读(346)
评论(0)
推荐(0)
2018年7月17日
当页面滚动到距顶部一定高度时某DIV自动隐藏和显示
摘要: <!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 奋斗—青年
阅读(478)
评论(0)
推荐(0)
2018年7月13日
jquery 过滤
摘要: <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 奋斗—青年
阅读(84)
评论(0)
推荐(0)
2018年6月20日
获取URL的参数
摘要: 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 奋斗—青年
阅读(90)
评论(0)
推荐(0)
2018年5月16日
for循环遍历多级json数据
摘要: 1.后台返回的json数据 2.遍历方法
阅读全文
posted @ 2018-05-16 18:29 奋斗—青年
阅读(4548)
评论(0)
推荐(0)
2017年12月7日
浏览器兼容问题
摘要: JavaScript 1.HTML对象获取问题 FireFox:document.getElementById(“idName”); ie:document.idname或者document.getElementById(“idName”). 解决办法:统一使用document.getElement
阅读全文
posted @ 2017-12-07 10:52 奋斗—青年
阅读(210)
评论(0)
推荐(0)
2017年10月24日
Jquery方法
摘要: 1、关于页面元素的引用 通过jquery的$()引用元素包括通过id、class、元素名以及元素的层级关系及dom或者xpath条件等方法,且返回的对象为jquery对象(集合对象),不能直接调用dom定义的方法。 2、jQuery对象与dom对象的转换 只有jquery对象才能使用jquery定义
阅读全文
posted @ 2017-10-24 11:46 奋斗—青年
阅读(126)
评论(0)
推荐(0)
公告