本文介绍了JQuery对话框()错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我点击按钮时,出现下面显示的错误消息:($'#billing_button_addTime')

I get the error message shown below when I click the button: ($'#billing_button_addTime')

billingController创建于 $(文件)。就绪

billingController is created in $(document).ready.

function BillingController() {
    }
BillingController.prototype.dialogAddTime = $(document.createElement('div'));

BillingController.prototype.loadBillingContent = function () {
        //Load the main content
        $("#content_area").load('/Content/HTML/billing.html', null, mainController.attachScrollBarsToCPOTable);

        //Pre-Load the Add Time Dialog
        $(billingController.dialogAddTime).load('/Content/HTML/billing_dialog_addTime.html', null, billingController.bindButtonAddTimeToHandler );
    }

BillingController.prototype.bindButtonAddTimeToHandler = function () {
    $('#billing_button_addTime').bind('click', billingController.buttonHanderAddTime);
}

BillingController.prototype.buttonHanderAddTime = function () {
    billingController.dialogAddTime.dialog({ modal: true });
}


推荐答案

这篇关于JQuery对话框()错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-16 05:18