JavaScript运行时错误; 'jQuery'未定义 [英] Javascript runtime error; 'jQuery' is undefined

查看:143
本文介绍了JavaScript运行时错误; 'jQuery'未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

需要您的帮助,

构建成功后,每当我单击f5时,页面都会给出类似"Javascript运行时错误;"jQuery"未定义之类的错误

请在我的代码下面找到,如果(typeof jQuery.ui ==``undefined''),否则错误出现在行中

Hi Friends,

Need your help,

After buildsucceed Whenever i click f5 the page giving the error like "Javascript runtime error; ''jQuery'' is undefined"

please find below my code, error have in line else if (typeof jQuery.ui == ''undefined'')

TSC.Timeout.Timeout.prototype =
{
    initialize: function() {
        TSC.Timeout.Timeout.callBaseMethod(this, 'initialize');

        // async postback support to reset session
        if (this._resetSessionOnAsyncPostback)
            Sys.Application.add_load(Function.createDelegate(this, this._handlePageLoaded));
        else
            this._resetTimeout();

        // respect displayButton
        if (this._displayButton) {
            this._onclickHandler = Function.createDelegate(this, this._onClick);
            $addHandler($get(this._btnClientId), "click", this._onClick);
        }
        else if (typeof jQuery.ui == 'undefined') {   // if no jquery ui, clicking div will reset - otherwise must click jquery ui modal button
            this._onclickHandler = Function.createDelegate(this, this._onClick);
            $addHandler($get(this._clientId), "click", this._onClick);
        }

        this.initDialog();
    },



该文件的url路径是 WebResource_2.axd?d = LGHQ91z4LixL01jNAlgwZL99pE7TNlpZufa1JfgfLoiCZRLgGKDl2eWTfcSl6zd9U4eqHJ-sD39qv1slbjytuuYSRTZ5b79B7T7B7B79B7B7B7T7B7B7B7T7JB7B7T7B7B7T7B7B7B6A7B7A7J7B7T7B7B7B7B7B0E7JB79B7A7B7B7B7B7B7B0CA7A7B7B7B0JT7B7B7B0E7JB7B7B7B7E7B7B7B7E7E7B
请与我分享您的想法,现在它更有用了

提前感谢:)

最好的问候
G.Renga



url path of this file is WebResource_2.axd?d=LGHQ91z4LixL01jNAlgwZL99pE7TNlpZufa1JfgfLoiCZRLgGKDl2eWTfcSl6zd9U4eqHJ-sD39qv1slbjytuuYSRTs5h53oHJZ4IBjBAlyXdh3NVAAO9leC61obTDIh0&t=635659264390659079

kindly please share your ideas with me, it''s more useful now

advance thanks :)

Best Regards
G.Renga

推荐答案

addHandler(
addHandler(


get( this ._btnClientId)," ._ onClick); } 其他 if ( typeof jQuery .ui == ' 未定义') {// 如果没有jquery ui,则单击div将重置-否则必须单击jquery ui模态按钮 this ._ onclickHandler = Function.createDelegate( this this ._ onClick);
get(this._btnClientId), "click", this._onClick); } else if (typeof jQuery.ui == 'undefined') { // if no jquery ui, clicking div will reset - otherwise must click jquery ui modal button this._onclickHandler = Function.createDelegate(this, this._onClick);


addHandler(
addHandler(


这篇关于JavaScript运行时错误; 'jQuery'未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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