袁来如此的工作笔记
竹杖芒鞋轻胜马,谁怕? 一蓑烟雨任平生。

JS/Jquery:

js使用new Date结果为invalid date或为null

275浏览量
what:js中使用newDate()方法,例如:newDate("2017-06-2317:00:00")结果为invaliddate或为null。why:参数格式不规范,不能兼容所有浏览器;how……

Uncaught TypeError: Cannot read property \split\ of undefined

299浏览量
what:why:how:这是split()切割的问题,这是因为遍历ul的时候,第一次会得到一个空值,在使用split()的时候加了一个判断(就是判断要切割的字符串是不是存在),然后成功解决问题。$(……

如何控制swiper中单个swiper-slider的宽度

321浏览量
what:why:how:在swiper的参数配置里面有一个参数:slidesPerViewvarswiper=newSwiper(\.swiper-container\,{slidesPerVi……

前端Swiper滑动的时候最右一个反弹回去了

366浏览量
what:why:how:slidesPerView:\auto\slidesPerView:设置slider容器能够同时显示的slides数量(carousel模式)。可以设置为number或者……

$(this).parent(“tr”).remove(); doe not the tablerow from the view

283浏览量
what:why:how:varremoveItemEl=$(this);$.ajax(options).done(function(data){removeItemEl.closest("tr").……

Ajax serialize()提交form表单不能上传file类型

255浏览量
what:why:how:FormData的封装方式,将form表单中的内容封装成formdata的数据格式FormData对象可以把form中所有表单元素的name与value组成一个querySt……

js百度商桥自定义样式

252浏览量
what:why:how:var_hmt=_hmt||[];(function(){varhm=document.createElement("script");hm.src="https://hm.……

用Masonry和jQuery.lazyload插件实现网页瀑布流布局

219浏览量
what:why:how:$(function(){f_masonry();$("img").lazyload({effect:"fadeIn",failurelimit:40,load:f_maso……

JQuery提示on is not a function解决方法

316浏览量
what:why:版本太低了,引入最新的JQUERY版本how:

js使用sessionStorage、cookie保存token

165浏览量
what:why:how:js使用cookie保存tokencookie在http请求中,随着请求发送到服务器将token保存在cookie中,一旦浏览器关闭,cookie中的token就会被清空。d……