思路:用全角空格和半角空格做区分。 1、自己写的部分 this.toOptions arr.map(x > {let kong for (let i 1; i < x.level; i i 1) {kong kong }kong kong let icon https://s1.ax1x.com/2018/09/27/iML0BD.pngif (x.level 1) {icon https://s1…
(STUFF((select , USER_NAME from TBL_BIZ_TRSBILLS_DETAIL where TRANSPORT_CODE TB.TRANSPORT_CODE and USER_TYPE 司机 for xml path()),1,1, )) AS DRIVER_NAMES 这个语句的意思是:用‘,’将查询到的司机姓名拼接起来,然后用 替换掉…
在第二个参数中填写字符串,需要查询的字段用空格相连。
const Person mongoose.model(Person, yourSchema);
// 查询每个 last name 是 Ghost 的 person, select name 和 occupation 字段
Person.findOne({ name.last: Ghost }, name occupation);官方…