- 博客(6)
- 收藏
- 关注
原创 localstorage的小应用 拖拽
Document //使盒子的坐标生效this.ele.style.left = this.pos.l + “px”;this.ele.style.top = this.pos.t + “px”}addEvent() {//监听式绑定事件this.ele.addEventListener(‘mousedown’, t...
2019-12-23 19:58:16 105
原创 cookie中本地存储密码有效期7天
Document 用户名: 密码: 记住账号密码7天<input type="button" id="btn" value="登录">var loginMsg=JSON.parse(getCookie(“loginMsg”));ouser.value=loginMsg.user;opass.v...
2019-12-22 19:38:20 944
原创 为什么为undefined
function create(n,a,s){}var p1=create(“张三”,16,1)console.log(p1);//此时结果为undefined,函数的返回值返回到执行语句 var p1=create(“张三”,16,1)上,但是此时函数内部并没有return,没有具体的返回值,所以为undefined。...
2019-12-08 12:29:59 149
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人