- function getNameByTradeCode(obj,type){
- var purl = "${ctx}/cbeex/user/user-info!getNameByTradeCode.action";
- var datas = {"tradeCode":obj.value};
- var planDaysJson = AjaxTools.subByPostDatas(purl,false,datas); //引一个js
- var reslut = jQuery.parseJSON(planDaysJson);
- if(reslut.isok == 'T'){
- $("#userName"+type).val(reslut.userName);
- }else{
- alert(reslut.msg);
- }
- }
- <script type="text/javascript" src="${ctx}/widgets/common/ajaxtools.js"></script>