如何解决“未捕获的rangeerror:超出最大调用堆栈大小”在jquery对话框中? [英] How to solve "uncaught rangeerror: maximum call stack size exceeded" in jquery dialog box ?

查看:90
本文介绍了如何解决“未捕获的rangeerror:超出最大调用堆栈大小”在jquery对话框中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

数据表:

Datatable :

 "columns": [
               { "data": "SupplierId", "name": "SupplierId" },
               { "data": "SupplierPIPCode", "name": "SupplierPIPCode" },
               { "data": "SupplierName", "name": "SupplierName" },
               {
                   "render": function (data, type, row, meta) {
                       
                      {
                   "render": function (data, type, row, meta) {
                       
                       var a = '<a class="action-style"></a><a class="action-style"></a><a>';
                       return a;
                   }, "orderable": false
               }
            ],

function deleteDrugMapping(supplierDrugId, SupplierId, SupplierName) {       
        $("#SupplierDrugMapDeleteDialog").dialog({
            resizable: false,
            height: 220,
            width: 475,
            modal: true,
            buttons: {
                "Yes": function () {
                    debugger;
                    $(this).dialog("close");
                    //window.location.href = url;
                    return false;
                },
                "No": function () {
                    $(this).dialog("close");
                }
            }
        });

What I have tried:

The above code first dynamically creates button onclick event where javascript function "deleteDrugMapping" is called .

Inside "deleteDrugMapping()" dialog box is opened where on Yes button click i get this error , "Uncaught RangeError: Maximum call stack size exceeded."

Error appears as soon as i click Yes button before any further execution of code.
Please help.

推荐答案

#SupplierDrugMapDeleteDialog)。dialog({
resizable: false
height: 220
宽度: 475
modal: true
按钮:{
function (){
debugger ;
("#SupplierDrugMapDeleteDialog").dialog({ resizable: false, height: 220, width: 475, modal: true, buttons: { "Yes": function () { debugger;


)。对话框( close );
// window.location.href = url;
return false ;
},
function (){
(this).dialog("close"); //window.location.href = url; return false; }, "No": function () {


this )。dialog( close);
}
}
});

我尝试过:

上面的代码首先动态创建按钮onclick事件,其中javascript function deleteDrugMapping被调用。

内部 deleteDrugMapping()对话框打开,按是按钮单击我得到错误, 未捕获RangeError:最大呼叫超出堆栈大小。

在进一步执行代码之前,如果单击是按钮,则会出现错误。
请帮忙。
(this).dialog("close"); } } }); What I have tried: The above code first dynamically creates button onclick event where javascript function "deleteDrugMapping" is called . Inside "deleteDrugMapping()" dialog box is opened where on Yes button click i get this error , "Uncaught RangeError: Maximum call stack size exceeded." Error appears as soon as i click Yes button before any further execution of code. Please help.


这篇关于如何解决“未捕获的rangeerror:超出最大调用堆栈大小”在jquery对话框中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆