js 判斷字符串忽略大小寫 相似於java 的equalsIgnoreCase

//測試js 忽略大小寫的方法 <script> String.prototype.equalsIgnoreCase = function(anotherString) { if(this === anotherString){ //若是二者相同 不然判端兩個的大小寫是否爲null return true; } //由於 typeof(null) = ob
相關文章
相關標籤/搜索