标签:传参 ons new throw span div ror class color
let require = ()=>{throw new Error(‘函数必须传参‘)} let print = (num=require())=>{console.log(num)} print(2) // 2 print(null) // null print() // 报错
标签:传参 ons new throw span div ror class color
原文地址:https://www.cnblogs.com/luguankun/p/14367970.html