js 去掉input标签中的百分号【%】

parseInt("100%")  --100

parseFloat("17%")     --17

posted @ 2015-06-02 15:48  园芳宝贝  阅读(1784)  评论(0编辑  收藏  举报