摘要: <wxs src="../../wxs/filter.wxs" module="tools"></wxs>具体参考小程序文档-框架 具体使用: 1.demo.wxml <wxs src="../../wxs/filter.wxs" module="tools"></wxs> <view class= 阅读全文
posted @ 2024-10-16 15:53 Zero0~ 阅读(41) 评论(0) 推荐(0)
摘要: 1. join() 函数 join() 将数组中元素 组成字符串 ,需要传个参数作为连接符,不传的话默认就是逗号。 const a=['a','b','c'] const b=a.join(" ") console.log(b) => 'a b c' 2. sort() 排序函数 将数组按照ASCI 阅读全文
posted @ 2024-10-11 15:06 Zero0~ 阅读(25) 评论(0) 推荐(0)