日期:2014-05-16  浏览次数:20375 次

JavaScript 比较和逻辑运算符

  1. var?Cts?=?"bblText";??
  2. ??
  3. if(Cts.indexOf("Text")?>?0?)??
  4. {??
  5. ????alert('Cts中包含Text字符串');??
  6. } ?

?

parseInt("40 years")

?

比较和逻辑运算符用于测试 true 或 false。