style="ime-mode:disabled;"
一、用JS把全角转换成半角(不能转换标点符号)
<input type="text" size="10" maxlength="10"
onkeyup="javascript:var t = ''; with(this.value) { for (var i = 0; i < length; i++) t += (65296 <= charCodeAt(i) && charCodeAt(i) <= 65305) ? String.fromCharCode(charCodeAt(i) - 65248) : charAt(i); } this.value = t;"
/>
<br>
<br>
二、用JS把全角转换成半角的函数
<input name="n" type="text" );
obj.value=str.substr(0,i);
}
}
}
}
</script>