12 2017 档案

摘要:Swiper 3.4.1 阅读全文
posted @ 2017-12-29 11:51 sunniejs 阅读(6903) 评论(0) 推荐(1)
摘要:ajax 跨域无法携带cookie,需要用到session,终于完美结局 xhrFields: { withCredentials: true }, 添加这个可能是大家都会做的一件事 但是添加上了之后就出现了另外一个问题 The 'Access-Control-Allow-Origin' heade 阅读全文
posted @ 2017-12-18 09:54 sunniejs 阅读(4343) 评论(0) 推荐(0)
摘要://执行回调函数 typeof fn "function" ? fn() : false; //执行回调函数 typeof fn "function" ? fn() : false; 阅读全文
posted @ 2017-12-13 15:14 sunniejs 阅读(15420) 评论(0) 推荐(0)
摘要:clone 某个分支: git clone -b b1 https://github.com/... clone所有分支 git clone https://github.com/... git branch -r * master origin/HEAD -> origin/master origin/master origin/b1 git checkout b1 阅读全文
posted @ 2017-12-11 17:18 sunniejs 阅读(139) 评论(0) 推荐(0)
摘要:$(function(){ //调用查看微信放大图片功能 imgClick(".product-img-body img"); }) //可以点击的图片 function imgClick(obj){ $(obj).click(function(){ var src = getI... 阅读全文
posted @ 2017-12-04 16:22 sunniejs 阅读(306) 评论(0) 推荐(0)