字串如何轉bool

function parseBool(input) {
    if (input == 'true') return true;
    else return false;
}

留言

熱門文章