字符串轉換
字符串轉JSON
JSON.parse()
JSON轉字符串
JSON.stringify()
encode字符串
encodeURIComponent
字符串轉Number
Number(info.scenesid)
正則邏輯
匹配字符(^)並轉換
str.replace(/\^/g, "%5E")
匹配字符串
/"smarterConfig\":{\"disable\":false}/.test(pluginsStr)
字符串轉換
JSON.parse()
JSON.stringify()
encodeURIComponent
Number(info.scenesid)
正則邏輯
str.replace(/\^/g, "%5E")
/"smarterConfig\":{\"disable\":false}/.test(pluginsStr)