2017年2月11日
摘要: 数字转化为字符串: String.valueOf(123); 123.toString(); //////////////////// parseInt()就是把String类型转化为int类型。 如 String a= "123"; int b = Integer.parseInt(a); 这样b 阅读全文
posted @ 2017-02-11 18:25 2015熊出没 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 1、替换特定字符 <html><body><script type="text/javascript">var str="Visit Microsoft!"document.write(str.replace(/Microsoft/,"W3School"))</script></body></htm 阅读全文
posted @ 2017-02-11 15:45 2015熊出没 阅读(221) 评论(0) 推荐(0) 编辑