js设计模式一

// 对象收编变量 var checkObject = { checkName(){return this}, checkEmail(){return this} } checkObject.checkName().checkEmail();// this指向当前对象,return this后能够链式调用; var checkObject = function(){// 这种写法
相关文章
相关标签/搜索