js 防止重复追加,我每次点添加有了就不让他再次添加
$("#adddata").die('click');$("#adddata").live('click',function(){//获取当前打开状态选项卡的索引vart...
$("#adddata").die('click');
$("#adddata").live('click',function(){
//获取当前打开状态选项卡的索引
var tabSelectedIndex = thisdiv.find('.tabs').find('.tabs-selected').index();
//获取选中节点的ID
var IDstring = onCheck(tabSelectedIndex);
$.ajax({
type: "POST",
url:'http://localhost/zongp/index.php/WholesaleOrders/Getcouponinfo',
dataType: "html",
data: {"id":IDstring},
success: function(data){
eval('myjson=' + data + ';');
var JsonStr = '';
PageOne(myjson['goods'],myjson['TableTitle'],0,'goodstable',0,0,JsonStr,0,0,1,0,options.pagelistnum);
}
}); 展开
$("#adddata").live('click',function(){
//获取当前打开状态选项卡的索引
var tabSelectedIndex = thisdiv.find('.tabs').find('.tabs-selected').index();
//获取选中节点的ID
var IDstring = onCheck(tabSelectedIndex);
$.ajax({
type: "POST",
url:'http://localhost/zongp/index.php/WholesaleOrders/Getcouponinfo',
dataType: "html",
data: {"id":IDstring},
success: function(data){
eval('myjson=' + data + ';');
var JsonStr = '';
PageOne(myjson['goods'],myjson['TableTitle'],0,'goodstable',0,0,JsonStr,0,0,1,0,options.pagelistnum);
}
}); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询