JQuery--extend的使用
2024-09-05 00:44:17
$.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();
最新文章
- Spring中javaMail通过SMTP发送邮件
- Mapped Statements collection does not contain value fo
- angular之自定义过滤器的使用
- ionic下拉加载自动触发
- vb和php 基于socket通信
- 一个flag
- An overview of the Spring MVC request flow
- JQuery获取append后的动态元素
- 韦东山yy公开课笔记(1)--各种杂的问题
- jsp语法与标签
- js动态创建表格方法
- Ansible6:Playbook简单使用【转】
- StretchAnimation伸缩动画.
- DPA从DPA 10.0.352升级到DPA 11.0.373
- 【转帖】Linux的历史----Linux内核剖析(一)
- html5 服務器發送事件
- redis基础学习总结
- Spring源码阅读(四)
- 1.maven中pom.xml文件中<;exclusions>;标签认不到问题
- 将文件转换成byte[]数组
热门文章
- mac brew nginx php php-fpm xdebug
- Vim操作 -- 按列
- 廖雪峰Java11多线程编程-3高级concurrent包-3Condition
- make: 警告:检测到时钟错误。您的创建可能是不完整的。
- SCOI2015
- windows环境下,svn未备份情况下重新恢复
- lvs + keepalived + nginx + tomcat高可用负载反向代理服务器配置(二) LVS+Keepalived
- System.Web.Mvc.FileContentResult.cs
- Ubuntu+Ruby+MySQL+Nginx+Redmine部署记录
- springboot拦截器的拦截配置和添加多个拦截器