- 博客(10)
- 收藏
- 关注
原创 数据类型
最新的 ECMAScript 标准定义了 7 种数据类型;6种原始类型1,Boolean //布尔值2,Null3,Undefined4,Number5,String6,Symbol //符号(ES6新定义)7,Object1,Boolean是一个逻辑数据类型,返回true和false,Boolean条件通常用于决定执行哪些代码片段(比如在i
2017-11-22 15:34:54
176
原创 通过js就可以判断当前页面是在什么浏览器打开的
var browser = { versions: function () { var u = navigator.userAgent, app = navigator.appVersion; return { //移动终端浏览器版本信息 trident: u.indexOf('Trident') > -1, //IE内核 presto
2017-03-05 12:02:46
2432
原创 jQueryPager分页
*{ margin:0; padding:0; list-style:none;}a{ text-decoration:none;}a:hover{ text-decoration:none;}.tcdPageCode{padding: 15px 20px;text-align: left;color: #ccc;text-align:center;}.tcdPageCode a{
2017-03-02 16:13:24
262
原创 封装$选择器
var _$=function(object) {if (object === undefined) return;var getArr=function(name,tagName,attr){var tagName = tagName || '*',eles =document.getElementsByTagName(tagName),clas = (typeof docu
2017-02-28 22:57:26
257
原创 列表切换
/*div{text-align: center;margin-top: 100px;}#clock{border: 1px solid #ccc;}*/*{margin:0;padding:0;list-style: none;font-size:12px; }.notice{width:298px;height: 98px;ma
2017-02-28 16:49:14
366
原创 可以左右滑动切换的轮播图
轮播图*{margin: 0;padding: 0;}ul{list-style: none;}.out{position:relative; width: 670px;height:400px;margin:50px auto; }.out .img li{position: absolute;top:0;left: 0;display: none;}.out .nu
2017-02-28 15:43:14
754
原创 url解析
1, window.location.href整个URl字符串(在浏览器中就是完整的地址栏)2,window.location.protocolURL 的协议部分本例返回值:http:3,window.location.hostURL 的主机部分本例返回值:www.jb51.net4,window.location.portURL 的端口部分如果
2017-02-28 10:07:30
343
原创 CSS实现单行、多行文本溢出显示省略号(…)
多行超出隐藏display: -webkit-box;-webkit-box-orient: vertical;-webkit-line-clamp: 3;overflow: hidden;单行超出隐藏overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
2017-02-20 10:29:01
201
原创 git 常用命令
添加文件提交 git add . git commit -am '修改了什么'查看分支:git branch查看所有分支:git branch --all 创建分支:git branch 删除分支:git branch -d ldn切换分支:git checkout 创建+切换分支:git checkout -b
2017-02-19 15:18:35
250
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人