摘要:
问题: 调用接口,传入含有空值的int?型数据时,报如下错误: The JSON value could not be converted to System.Nullable`1[System.Int32]. 解决方式: 在调用接口之前,先把int?类型的 dec 属性值设为null值就可以了 i 阅读全文
摘要:
要求: 字符串“[总体积]=[松土]+[普通土]+[硬土]”按中括号分割成数组 var a = "[总体积]=[松土]+[普通土]+[硬土]"; let regex = /\[(.+?)\]/g; a = a.match(regex); console.log(a); 结果: ["[总体积]", " 阅读全文