-4
我在我的ASP.NET MVC項目中有一個jQuery函數。MVC中的Jquery ... IndexOf不工作
爲什麼IndexOf
不起作用在我的功能?
/// <reference path="jquery-1.10.2.js" />
$(document).ready(function() {
$('#finpost').keyup(function()
{
$("#CityId > option").each(function() {
var t = this.text.toUpperCase();
alert(t.IndexOf('2200'));
});
});
});
'的indexOf()' - 小寫'i' –