1

Microsoft JScript 运行时错误:“this.Plugins[...]”为空或不是对象

来自此代码:

var xVal = xVal || {
    Plugins: {},
    AttachValidator: function(elementPrefix, rulesConfig, pluginName) {
        if (pluginName != null)
            this.Plugins[pluginName].AttachValidator(elementPrefix, rulesConfig);
        else
            for (var key in this.Plugins) {
                this.Plugins[key].AttachValidator(elementPrefix, rulesConfig);
                return;
            }
    }
};
4

1 回答 1

1

确保您在母版页中引用xVal.AspNetNative.jsxVal.jquery.validate.js

于 2009-11-03T21:45:36.437 回答