随笔分类 -  JavaScript

摘要:https://www.cnblogs.com/chyingp/p/websocket-deep-in.html 阅读全文 »
posted @ 2024-01-02 11:44 文采呱呱 阅读(5) 评论(0) 推荐(0) 编辑
摘要:升序 let arr = [1,2, 5, 3, 6, 4, 7] arr.sort((a,b)=>{ return a-b }) console.log(arr) 降序 let arr = [1,2, 5, 3, 6, 4, 7] arr.sort((a,b)=>{ return b-a }) c 阅读全文 »
posted @ 2023-12-29 15:03 文采呱呱 阅读(12) 评论(0) 推荐(0) 编辑
摘要:document.write('write') console.log('log'); prompt('prompt') 阅读全文 »
posted @ 2023-03-23 14:30 文采呱呱 阅读(13) 评论(0) 推荐(0) 编辑
摘要:`` 新旧两版对比 document.write('模板拼接'+ zzz + '模板拼接') document.write(`模板拼接${zzz}模板拼接`) 实例: let age = 18 document.write(`老夫今年${age}`) 模板字符串内做加减乘除,且可以换行 实例: le 阅读全文 »
posted @ 2023-02-02 14:39 文采呱呱 阅读(29) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示