LWC is a Javascript framework, and this will work. However, I think you would normally write it as: if (str.indexOf(substr) > -1) {}.
確定! 回上一頁