摘要: <script> let info = {name:"s z w",email:"xxxxxxx@xxx.com",addr:"北京"}; let {name,addr} = info; console.log(name); console.log(addr); </script> Vue3中需要什 阅读全文
posted @ 2022-11-14 17:06 Sherwin_szw 阅读(20) 评论(0) 推荐(0) 编辑
摘要: <script> function info(v1,...data){ console.log(v1,data); } info(11); info(11,22); info(11,22,333,444,55); </script> <script> function info(v1,v2,v3,v 阅读全文
posted @ 2022-11-14 17:03 Sherwin_szw 阅读(7) 评论(0) 推荐(0) 编辑
摘要: let info = "我是" + "?" + "今年技术"; <script> let name = "张开"; let age = 73; let info = `我叫${name},今年${age}岁`; </script> 阅读全文
posted @ 2022-11-14 17:01 Sherwin_szw 阅读(8) 评论(0) 推荐(0) 编辑
摘要: var/let/const <script> function show(){ if(1==1){ var name = "szw"; //函数作用域=Python } consolo.log(name); } show(); </script> <script> if(1==1){ let age 阅读全文
posted @ 2022-11-14 16:59 Sherwin_szw 阅读(10) 评论(0) 推荐(0) 编辑