摘要: let foo3 = function() { console.log('hahawoshi foo3') } foo3(); let foo4 = () => { console.log('haha woshi foo4') } foo4(); //箭头函数this 是静态的,this始终指向函数 阅读全文
posted @ 2021-11-30 22:59 azz122342 阅读(304) 评论(0) 推荐(0)
摘要: let str = `<ul> <li>a</li> <li>b</li> </ul>` console.log(str) let str2 = '你是' let str3 = '个好人' let res = str2 + str3 console.log(res);//你是个好人 let res2 阅读全文
posted @ 2021-11-30 22:18 azz122342 阅读(13) 评论(0) 推荐(0)
摘要: let arr = ['张三','李四','王五']; let [a,b,c] = arr;console.log(a); let postForm = { username: 'zhangsan', password: '123235', foo: function() { console.log 阅读全文
posted @ 2021-11-30 22:11 azz122342 阅读(67) 评论(0) 推荐(0)