随笔分类 -  JS

new Promise(function(resolve,reject){})
摘要:https://blog.csdn.net/weixin_41888813/article/details/82882375 promise主要是为了解决js中多个异步回调难以维护和控制的问题. function checkFunc() { let p = new Promise(function 阅读全文

posted @ 2020-05-21 15:40 大丸子er 阅读(1374) 评论(0) 推荐(0)

js
摘要:区分slice()和splice()和split()方法 : 数组转化为字符串: toString()和join(',')一样 阅读全文

posted @ 2020-05-21 15:37 大丸子er 阅读(118) 评论(0) 推荐(0)

正则验证
摘要:1 阅读全文

posted @ 2020-05-19 16:04 大丸子er 阅读(109) 评论(0) 推荐(0)

导航

{a.styleSheet.cssText=e}t.getElementsByTagName("head")[0].appendChild(a)}function s(){return"rgb("+(255*Math.random())+","+(255Math.random())+","+~~(255Math.random())+")"}var d=[];e.requestAnimationFrame=function()}(),n()}(window,document);