![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Js
zhanglei_1991
野生程序猿一只
展开
-
js字符串转换成数字与数字转换成字符串的实现方法
address:http://www.jb51.net/article/45331.htmjs字符串转换成数字将字符串转换成数字,得用到parseInt函数。parseInt(string) : 函数从string的开始解析,返回一个整数。举例:parseInt('123') : 返回 123(int);parseInt('1234xxx') : 返回 1234转载 2017-05-18 11:53:01 · 555 阅读 · 0 评论 -
Ajax中传递Json格式的参数
address:http://www.cnblogs.com/esther-qing/p/5944724.html$.ajax({type: "post",url: baseUrl+"sys/login",dataType:"json",contentType:"application/json;charset=utf-8",data:JSON.转载 2017-05-19 12:48:07 · 2238 阅读 · 0 评论