【发布时间】:2016-12-05 13:40:35
【问题描述】:
在 netsuite suitescript 1.0 中,我想检查一个字符串是否有一组关键字。在 javascript 中有一个名为 .includes("Set_of_keywords_to_be_searched"); 的函数。 我在 netsuite 中尝试了 .includes,但它给出了错误。
例如:
var str = "Hello world, welcome to the javascript.";
var n = str.includes("world"); // this will return true
var n = str.includes("Apple"); // this will return false
我希望在 netsuite 中有类似的功能。
【问题讨论】:
标签: netsuite suitescript