You don't necessarily need jQuery. JavaScript alone will do this. var a = 2; var b = 3; var c = ((a < b) ? 'minor' : 'major');.
確定! 回上一頁