span clickstop=jumpEdit3recordid v-if=editEnable&&!recordinstId编辑span判断recordinstId包含数字
可以使用正则表达式来判断record.instId是否包含数字。以下是一个示例代码:
var hasNumber = /\d/.test(record.instId);
if (hasNumber) {
// record.instId包含数字
} else {
// record.instId不包含数字
}
您可以将此代码放在需要判断的地方,并根据需要进行相应的处理。
原文地址: https://www.cveoy.top/t/topic/iZgB 著作权归作者所有。请勿转载和采集!