function getInfo(){
var player_name=$("#name").val();
$.ajax({
url: 'get_wefare',
method: 'POST',
dataType: 'json',
data: {name:player_name},
success: function(res) {
// console.log(res);
if(res.code==0){
var tr_td = '';
tr_td+="<td>"+res.content.PlayerID+"</td><td>"+res.content.NickName;
tr_td+="</td><td>"+res.content.se+"</td><td>"+res.content.ceer;
tr_td+="</td><td>"+res.content.Level+"</td>";
tr_td+='<td><input type="text" class="form-control" id="buy_num" value=""/></td><td><button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">发放</button></td>';
$("#my_tr").html(tr_td);
}else{
toastr.error(res.msg);
}
},
error:function(res){
toastr.error(res.msg);
}
});
}

最新文章

  1. web.config SetAttributes
  2. MySQL运行状态show status中文详解(转)
  3. Human Gene Functions(poj 1080)
  4. ruby杂记
  5. javascript事件学习笔记
  6. Unity3d 随机地图生成
  7. [TypeScript] Inheritance
  8. Android中获取电池电量
  9. linux centos 卸载jdk
  10. [Oracle]审计Audit
  11. 如何获取Linux-gate.so.1动态库
  12. python_flask框架学习之路(1)
  13. 将本地代码通过git命令上传到github的流程
  14. 337. House Robber III二叉树上的抢劫题
  15. CSS:概念和三种样式
  16. Scala_特质
  17. MVC學習網站
  18. Ubuntu16.04下的主题美化
  19. Spring Security构建Rest服务-0700-SpringSecurity开发基于表单的认证
  20. H5调试工具 - weinre远程调试工具

热门文章

  1. Async and Await (Stephen Cleary)
  2. C之自定义类型
  3. php判断为空就插入,判断不为空就更新
  4. error C2086: “int WINGDIAPI”: 重定义
  5. spring boot入门学习---1
  6. 用SSMS连接Azure Sql Database 与连接本地库的一些操作区别
  7. subprocess以及常用的封装函数
  8. MYSQL的MYSQLDUMP命令
  9. JetsonTx2刷机
  10. vscode使用Chrome浏览器调试不好用,解决方法!!