摘要:
let checkLogin = function () { return new Promise(function (resolve, reject) { let flag = document.cookie.indexOf('userId')>-1?true:false; if(!flag){ ... 阅读全文
摘要:
function sum(x,y,z){ let total = 0; if(x)total+=x; if(y)total+=y; if(z)total+=z; console.log(`total:${total}`); } sum(5,'',9) function sum2(.... 阅读全文