使用Math与RegExp结合
Let gameName="AFGA捕鱼";
if (gameName.match(RegExp("捕鱼"))) {
let fishing = obj.data.gameData.fishing;
console.log(fishing);
}
参考地址:https://www.php.cn/faq/473880.html
javascript判断字符串中是否包含某个字符串
阅读 45
2023-08-22
使用Math与RegExp结合
Let gameName="AFGA捕鱼";
if (gameName.match(RegExp("捕鱼"))) {
let fishing = obj.data.gameData.fishing;
console.log(fishing);
}
参考地址:https://www.php.cn/faq/473880.html
相关推荐
精彩评论(0)