浏览器问题没有好的解决方法

解决方案 »

  1.   

    各银行系统好像有这样的功能;应该还是能处理的
      

  2.   


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     <html>
       <head>
         <title>MyHtml.html</title>
         <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
         <meta http-equiv="description" content="this is my page">
         <meta http-equiv="content-type" content="text/html; charset=UTF-8">
         <script type="text/javascript">
    function setSelectionRange(input, selectionStart, selectionEnd) {
      input.focus();
      if (input.setSelectionRange) {
        input.setSelectionRange(selectionStart, selectionEnd);
      }
      else if (input.createTextRange) {
        var range = input.createTextRange();
        range.collapse(true);
        range.moveEnd('character', selectionEnd);
        range.moveStart('character', selectionStart);
        range.select();
      }
    }    
       //清除逗号
        function chearComma(id){
         var mes=document.getElementById(id); 
         mes.value=mes.value.replace(/,/g, '');
     var tl = mes.value.length;
     setSelectionRange(mes, tl, tl)
        }  
         </script>
       </head>
       <body>
         <table>
           <tr>
            <td>金额:<input type="text"  id="aaa" name="aaa"  onfocus="chearComma(this.id)" value="123,321,456,23.3"/></td>
           </tr>
         </table>
       </body>
     </html>