gpt4 book ai didi

javascript - Uncaught ReferenceError : method is not defined

转载 作者:行者123 更新时间:2023-11-28 03:48:50 24 4
gpt4 key购买 nike

我在 Chrome 浏览器控制台中收到此错误。我的页面使用定义了该方法的外部 js 文件。 Page 正在识别其他方法,但无法识别此特定方法。

Uncaught ReferenceError: getBillingAndShipping_AJAX is not defined at

enter image description here

 <script type="text/javascript">
//<![CDATA[
Method1();Method2();Method3();updatecalender();UpdateItemDetailHeader();getBillingAndShipping_AJAX('0',1,0,0,'','False',''); EnableDisableHeaderInfo_ReviseOrder(false);DisableControlForContractorAndCS(true);HideDeleteForDependentItems();GetTimeDifference();hideinactive('content');$(document).ready(function() {changeoptions_user();if(typeof callAutocomplete!='undefined'){callAutocomplete();} });$(document).ready(function () {if($.browser.msie) {$('input:radio').css({ border:'none'}); $('input:checkbox').css({ border:'none'}); } });if(typeof js_load!='undefined') js_load();
var Page_ValidationActive = false;

这是我的服务器端脚本。我尝试过 ScriptManager/ClientScript 方法,例如 RegisterClientScriptBlock 和 RegisterStartUpScript,但没有成功。请帮忙。

    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Bind Billing Shipping DDL", string.Format("getBillingAndShipping_AJAX('{0}',1,1,{1},'{2}','{3}','{4}');", 
hdnFactoryID1.Value,
miCustomerType,
stVendorCode,
mbIsReviseOrder,
msEdiId), true);

最佳答案

谢谢大家。我得到了修复。我将 js 方法移到页面本身上并且它被识别了。如果是js文件则无法识别。我不知道为什么。很奇怪。

关于javascript - Uncaught ReferenceError : method is not defined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48212550/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com