JQUERY知识总结
摘要:1, 让页面上某一个已存在的SELECT被选中的JQuery写法 $("#test").find("option[value='3']").prop("selected",true);
阅读全文
格式化用户输入的金额(处理RMB的时候适合)
摘要:number_format($str,'2','.',',');function number($k){ if(strpos($k,'.')===false){ $ok = $k.'.'.'00'; }else{ $arr = explode(".",$k); $a = substr($arr[1],0,2); ...
阅读全文