$.extend({a,b,c},{a,bd}); 里面的对象属性如果 存在就替换,如果不存在就添加

 var loadData = function (order) {
var obj = getParameter(location.search);
$.ajax({
type:"get",
url:"/product/queryProduct",
data:$.extend({
"proName":obj.key,
"page":currentPage,
"pageSize":10
},order),
dataType:"json",
success:function (result) {
console.log(result);
total = Math.ceil(result.count/result.size);
var html = template("lt_search_product",result);
if(currentPage == 1){
$(".lt_product").html(html);
}else{
$(".lt_product").append(html);
}
}
});
};
loadData();

最新文章

  1. Spring中javaMail通过SMTP发送邮件
  2. Mapped Statements collection does not contain value fo
  3. angular之自定义过滤器的使用
  4. ionic下拉加载自动触发
  5. vb和php 基于socket通信
  6. 一个flag
  7. An overview of the Spring MVC request flow
  8. JQuery获取append后的动态元素
  9. 韦东山yy公开课笔记(1)--各种杂的问题
  10. jsp语法与标签
  11. js动态创建表格方法
  12. Ansible6:Playbook简单使用【转】
  13. StretchAnimation伸缩动画.
  14. DPA从DPA 10.0.352升级到DPA 11.0.373
  15. 【转帖】Linux的历史----Linux内核剖析(一)
  16. html5 服務器發送事件
  17. redis基础学习总结
  18. Spring源码阅读(四)
  19. 1.maven中pom.xml文件中<exclusions>标签认不到问题
  20. 将文件转换成byte[]数组

热门文章

  1. mac brew nginx php php-fpm xdebug
  2. Vim操作 -- 按列
  3. 廖雪峰Java11多线程编程-3高级concurrent包-3Condition
  4. make: 警告:检测到时钟错误。您的创建可能是不完整的。
  5. SCOI2015
  6. windows环境下,svn未备份情况下重新恢复
  7. lvs + keepalived + nginx + tomcat高可用负载反向代理服务器配置(二) LVS+Keepalived
  8. System.Web.Mvc.FileContentResult.cs
  9. Ubuntu+Ruby+MySQL+Nginx+Redmine部署记录
  10. springboot拦截器的拦截配置和添加多个拦截器