随笔分类 -  js

摘要:$.ajax({ url: '/my/userinfo', method: 'get', success: function(res) { if(res.status !==0) { return layui.layer.msg(res.message); } renderAvatar(res.da 阅读全文
posted @ 2021-03-16 23:57 天使佳少 阅读(940) 评论(0) 推荐(0)
摘要:offsetLeft 相对于父元素定位 clientWidth 视图窗口的宽度 scrollWidth 实际页面的宽度 阅读全文
posted @ 2020-12-04 15:09 天使佳少 阅读(99) 评论(0) 推荐(0)
摘要:<a href="https://www.baidu.com" target="tony">window.open("https://www.baidu.com", "tony") 这两个的作用是一样的,第二个参数是指定一个窗口名称。如果没有,新打开一个窗口,并将窗口设置为 tony;如果存在,打开 阅读全文
posted @ 2020-11-24 09:54 天使佳少 阅读(545) 评论(0) 推荐(0)