判斷中文輸入--Javascript
function ischinanese(s){var ret=true;
for(var i=0;i<s.length;i++){
ret=ret && (s.charCodeAt(i)>=10000);
}
return ret;
}
posted on 2006-02-14 23:30 Vincent.Chen 閱讀(305) 評論(0) 編輯 收藏 所屬分類: JavaScript
posted on 2006-02-14 23:30 Vincent.Chen 閱讀(305) 評論(0) 編輯 收藏 所屬分類: JavaScript