The easiest way to convert string to boolean is to compare the string with 'true' : let myBool = (myString === 'true');.
確定! 回上一頁