if (reluststr != undefined) {
reluststr = reluststr.replace(/\[卡片號碼]/g, "CardNO");
}
一般的大家都知道replace只能替換一個,這裏用正則可以很好的全部替換了 格式按照上面的格式來。
if (reluststr != undefined) {
reluststr = reluststr.replace(/\[卡片號碼]/g, "CardNO");
}
一般的大家都知道replace只能替換一個,這裏用正則可以很好的全部替換了 格式按照上面的格式來。
(function(d, s, id) { let js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) retur