一.转换成金额形式 function toMoney(num){ if(num){ if(isNaN(num)) { alert("金额中含有不能识别的字符"); return; } num = typeof num == "string"?parseFloat(num):num//判断是否是字符串如果是字符串转成数字 num = num.toFixed(2);//保留两位 num = parseFloat(num);//转成数字 num = num.toLocal…
使用httprequester接口测试能返回数据,但是用ajax返回json格式的时候返回报500Internal Server Error. The server encountered an internal error that prevented it from fulfilling this request org.springframework .web.util.NestedServletException: Request processing failed; nested ex…