在JavaScript中判斷變數是否存在
if (typeof(_varName) == 'undefined')
…the variable is not exist.
在jQuery中判斷下拉選單裡是否有特定value的option存在
if (jQuery("#" + _objId + " option[value='" + _value + "']").length > 0)
張貼留言
在MacOS上要使用windows去編譯一些程式常常會遇到一些plamform的問題... - cmake build failed 當使用 cmake -S . -B build 要建立 build system files 原本的專案是在x64上, 所以直接執行會直接使用A...
沒有留言:
張貼留言