会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Zoe`s
努力才会幸福
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
下一页
2017年4月3日
js获取当前根目录的方法
摘要: function getRootPath_web() { //获取当前网址,如: http://localhost:8083/uimcardprj/share/meun.jsp var curWwwPath = window.document.location.href; //获取主机地址之后的目录
阅读全文
posted @ 2017-04-03 09:57 zhouyiersan
阅读(3623)
评论(0)
推荐(0)
2017年3月21日
web移动端-弹性盒模型
摘要: (父元素加) : /*新版弹性盒模型*/ /* display: flex; */ /*设置主轴方向为水平方向*/ /* flex-direction: row; */ /*设置主轴方向为垂直方向*/ /* flex-direction: column; */ /*老版弹性盒模型*/ /* disp
阅读全文
posted @ 2017-03-21 12:17 zhouyiersan
阅读(226)
评论(0)
推荐(0)
2017年3月20日
webpack 操作
摘要: 依赖安装 : 全局安装webpack : sudo npm install webpack -g 本地安装webpack : npm install webpack —save-dev 需要注意的是 : 在安装之前确保项目中有package.json文件存在,没有通过 npm init 创建 npm
阅读全文
posted @ 2017-03-20 23:06 zhouyiersan
阅读(205)
评论(0)
推荐(0)
mac终端安装webpack的时候报错Err,解决的办法 sudo npm install webpack -g
摘要: MacBook-Air:~ xxx$ npm install webpack -g npm WARN invalid config registry="" npm WARN invalid config Must be a full url with 'http://' npm WARN check
阅读全文
posted @ 2017-03-20 19:34 zhouyiersan
阅读(10925)
评论(0)
推荐(0)
2017年3月19日
移动端mete设置
摘要: <!DOCTYPE html> <!-- 使用 HTML5 doctype,不区分大小写 --> <html lang="zh-cmn-Hans"> <!-- 更加标准的 lang 属性写法 http://zhi.hu/XyIa --> <head> <!-- 声明文档使用的字符编码 --> <me
阅读全文
posted @ 2017-03-19 16:42 zhouyiersan
阅读(195)
评论(0)
推荐(0)
Ajax通过script src特性加载跨域文件 jsonp
摘要: <!DOCTYPE html><html><head> <meta charset="UTF-8"> <title>Document</title></head><body><input type="text" id="text"><ul></ul> <script type="text/javas
阅读全文
posted @ 2017-03-19 09:27 zhouyiersan
阅读(131)
评论(0)
推荐(0)
2017年3月18日
封装cookie的获取,设置与查找
摘要: //获取cookiefunction getCookie(key,value){ var c = document.cookie; var str = key + '=' + value; var re = new RegExp('(^|\\s)'+str+';?($|\\s)'); return
阅读全文
posted @ 2017-03-18 21:54 zhouyiersan
阅读(136)
评论(0)
推荐(0)
jquery笔记
摘要: // setInterval(function(){// console.log($(window).scrollTop())//获取滚动距离// },300)// // on("click") 和 click()的区别 : click是单一的事件,而on可以加多个事件及自定义事件,以及对应事件不同
阅读全文
posted @ 2017-03-18 12:27 zhouyiersan
阅读(112)
评论(0)
推荐(0)
2017年3月16日
RegExp javascript正则表达式 :
摘要: 传统的查找字符串中的相关的字符 :<script type="text/javascript">var str='aaa23uihjkikh666jhjhk888kuhji123bnjk321';//这是字符;function findNum(str){ var arr=[]; var tmp=''
阅读全文
posted @ 2017-03-16 14:47 zhouyiersan
阅读(150)
评论(0)
推荐(0)
正则匹配是否是手机号
摘要: function isTel(n){ var re=/^[1][3-8]([0-9]{9})$/; console.log(re.test(n.trim()))}
阅读全文
posted @ 2017-03-16 08:52 zhouyiersan
阅读(235)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告