Fork me on GitHub
摘要: Document hello every body hello every body hello every body ... 阅读全文
posted @ 2017-05-16 21:43 明天后浪 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 1.如果只是实现一个复制的功能呢有一个比较简单的方案废话不说,直接上代码 (pc 推荐) 但是这个实现的方法pc无问题 但是在移动端有一个缺点 手机的键盘区会弹出来 因为执行的是textarea 的 select 方法取值 (移动推荐) 2.引用一个JavaScript copy库,测试移动端能够完 阅读全文
posted @ 2017-05-12 10:32 明天后浪 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 网址查询:http://caniuse.com/#feat=namevalue-storage 阅读全文
posted @ 2017-05-08 10:55 明天后浪 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 不分任何语言来说,后台做登录认证 有cookie 认证 和session 认证 cookie 是http的一部分,所有的请求都会带上cookie 步骤: 1)服务器向客户端发送 cookie。(可以客户端写入cookie) 2)通常使用 HTTP 协议规定的 set-cookie 头操作。 3)规范 阅读全文
posted @ 2017-05-05 17:10 明天后浪 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 1.vue-router histroy 模式中 iPhone 右上角复制链接出啦的连接是所有的链接都是首页的链接(hash模式就会可以) 2.andriod 微信浏览器 vue2.x 或者 jQuery ajax 中 ajax连续请求2次及以上就会 ajax 就会不返回success 也不返回er 阅读全文
posted @ 2017-05-05 10:25 明天后浪 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1.根节点css加上 -webkit-tap-highlight-color: rgba(0,0,0,0); 阅读全文
posted @ 2017-04-28 11:25 明天后浪 阅读(456) 评论(0) 推荐(0) 编辑
摘要: 原文链接:http://lukesign.com/disable-wechat-font-adjust/ 在 iOS 下,对网页的 body 元素设置 -webkit-text-size-adjust: 100% !important; 可以覆盖掉微信的样式。 在 Android 下,需要通过 We 阅读全文
posted @ 2017-04-28 10:21 明天后浪 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 1.ajax 请求成功函数里面调用 window.location.href 跳转到(不管是同域名还是不同的域名下)都不会收到阻止 但是ajax 在async 是 false(也就是异步的情况下)使用window.open跳转 (同域名或者不同的域名下)会被认为是广告弹窗 阅读全文
posted @ 2017-04-24 15:16 明天后浪 阅读(2265) 评论(0) 推荐(0) 编辑
摘要: Document 阅读全文
posted @ 2017-04-17 19:21 明天后浪 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.html出现缓存的时候请在header加上<meta http-equiv="cache-control" content="max-age=0" /> <meta http-equiv="cache-control" content="no-cache" /> <meta http-equiv 阅读全文
posted @ 2017-04-14 11:03 明天后浪 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Document for work 1.虚拟环境安装 cd ~ Mkdir -p virtual/crm Cd virtual/crm Sudo easy_install pip Sudo pip install virtualenv /usr/bin/python whereis python p 阅读全文
posted @ 2017-03-17 16:48 明天后浪 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 正如此下面的代码,出现了hello能够正常运行,但是在部分微信里面maybe不能够正常的运行 所以为了保险起见,如果要进行多个dom select 需要先Array转一下 阅读全文
posted @ 2017-03-06 18:46 明天后浪 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 1.一行文字不折行: white-space:nowrap overflow:hidden text-overflow:ellipsis//超出文字展示为... 2.图片和文字组合不等高的时候设置图片的verital-align:top 3.css sticky-footer 多行文字溢出[...] 阅读全文
posted @ 2017-03-05 11:12 明天后浪 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1.http-server 是一个简单的零配置命令行HTTP服务器, 基于 nodeJs. 如果你不想重复的写 nodeJs 的 web-server.js, 则可以使用这个. 安装 (全局安装加 -g) : 在站点目录下开启命令行输入 访问: http://localhost:8080 or ht 阅读全文
posted @ 2017-02-17 15:13 明天后浪 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 1.建立git 仓库的2中方法 第一种是git init 第二种是git clone 要添加一个新的远程仓库,可以指定一个简单的名字,以便将来引用,运行 git remote add [shortname] [url]:2.建立裸仓库 mkdir share.git cd share.git ; g 阅读全文
posted @ 2017-02-08 19:46 明天后浪 阅读(128) 评论(0) 推荐(0) 编辑