摘要:
function timeout(nums){ return new Promise(function(resolve,reject){ setTimeout(resolve,nums); })};var m=timeout(1000).then(()=>{console.log(true)}).c 阅读全文
摘要:
String.prototype.change = function (type) { switch (type) { case "Date": if (isNaN(this) && !isNaN(Date.parse(this))) { return new Date(this); } else 阅读全文