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>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-06-21
  • 2022-01-15
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-24
  • 2021-06-04
  • 2022-12-23
  • 2021-05-28
  • 2022-12-23
  • 2022-03-01
相关资源
相似解决方案