正则--input输入框_英文逗号转中文逗号

html代码

 <input type="text" class="test"  name="test" id="test" >\

js代码

    html.find(".test").change(function(){
        $(this).val($(this).val().replace(/,/g,","))
    }); 

猜你喜欢

转载自blog.csdn.net/icecoola_/article/details/80447297
今日推荐