这段代码哪里出了错,我参照别人写的好像没什么不同?啊,字数不够,随便凑凑QWQ
<script>
const hello = {
name: '1号',
age: '13',
icant: function () {
console.log('hellow')
}
}
//建议改成 const { icant } = hello
let { icant } = hello
icant()
</script>
回答不易,如果对你有帮助的话,希望能给一个采纳呀,谢谢
funtion错了,是function