Assertion Failed: (anonymous function) :449
我得到了这个错误8次,最后有不同的数字
这是我正在使用的一些代码
main.HTML中
<div ID="wrapper"><div ID="mainBackground"> <div ID="stflogo"><img src="images/logo.png" wIDth="200" height="186" alt="Mylogo logo" /></div><div ID="formContainer"> <h1>Register Your Card</h1> <form ID="AccountDetailsForm" method="post" data-AJAX="false"> <input ID="tfscCardNumber" type="hIDden" name="tfscCardNumber" minlength="2" maxlength="20" Readonly="Readonly" Disabled="Disabled"/> <p><label ID="firstnameLabel" for="firstname" >First name </label> <input ID="firstname" type="text" name="firstname" minlength="2" maxlength="20"/></p> <p><label ID="lastnameLabel" for="lastname" > Last name </label> <input ID="lastname" type="text" name="lastname" minlength="2" maxlength="25"/></p> <p><label ID="address1Label" for="address1" >Address 1 </label> <input ID="address1" type="text" name="address1" minlength="2" maxlength="40"/></p> <p><label ID="address2Label" for="address2" >Address 2</label> <input ID="address2" type="text" name="address2" maxlength="40"/></p> <p><label ID="cityLabel" for="city" >Town / City </label> <input ID="city" type="text" name="city" minlength="2" maxlength="40"/></p> <p> <label ID="countyLabel" for="county" >County / State </label> <input ID="county" type="text" name="county" minlength="2" maxlength="40"/> </p> <p> <label ID="postcodeLabel" for="postcode" >Postcode / Zip </label> <input ID="postcode" type="text" name="postcode" minlength="2" maxlength="11"/> </p> <p> <label ID="countrySelectionLabel" for="countrySelection" >Country </label> <select ID="countrySelection" > </select> </p> <p><label ID="telephoneLabel" for="telephone" >Tel Number </label> <input ID="telephone" type="tel" name="telephone" minlength="2" maxlength="12"/></p> <p><label ID="emailLabel" for="email" >Email </label> <input ID="email" type="email" name="email" minlength="2" maxlength="100"/></p> <p><label ID="confirmEmailLabel" for="confirmEmail" >Confirm Email </label> <input ID="confirmEmail" type="email" name="confirmEmail" minlength="5" maxlength="100"/></p> <p><label ID="passportNumberLabel" for="passportNumber" >Passport Number </label> <input ID="passportNumber" type="text" name="passportNumber" minlength="3" maxlength="20"/></p> <p >Please Ensure that you have read the Terms & Conditions and Privacy & security Policy</p> <p > <input type="checkBox" name="accepttandc" ID="accepttandc" /> <label for="checkBox" >I have read the Terms & Conditions</label> <p> <input type="submit" value="submit" data-role="button" data-theme="redbutton"/> </form> </div><!-- END OF FORM CONTAINER --> </div></div>....
appForm.Js
$('#wrapper').live("pageshow",function() {if ( $('#countrySelection')[0].length < 1){ $.mobile.loadingMessage = "RetrIEving CountrIEs"; $.mobile.showPageLoadingMsg(); Repository.load('details/countrIEs/all',function(countrIEs){ $.each(countrIEs,function() { $('#countrySelection').append('<option value="' + this.ID + '">' + this.name + '</option>').selectmenu('refresh'); }); $.mobile.hIDePageLoadingMsg(); });}});$('#wrapper').live("pagecreate",function() { $('#AccountDetailsForm select,#AccountDetailsForm input[type!=submit]').focus(function (){ focusScroller(this); });$('#AccountDetailsForm select,#AccountDetailsForm input[type!=submit]').blur(function (){ if ( $('#accountFormScrollVIEw').data().scrollListvIEw._sy < $('#accountFormScrollVIEw').data().scrollListvIEw._maxY){ $('#accountFormScrollVIEw').data().scrollListvIEw.scrollTo(0,$('#accountFormScrollVIEw').data().scrollListvIEw._maxY,0); }}); }); $(window).resize(function (){// AndroID Resize Event needed for the keyboard});var focusScroller = function(formElement){ $(window).scrolltop(0); var elementLabel = "#" + formElement.ID + "Label"; var offSetposition = $(elementLabel)[0].offsettop; if(formElement.labels === undefined && formElement.ID === "countrySelection"){ // ios4 quirk for select elements offSetposition = 100; } scrollTo(0,0); $('#accountFormScrollVIEw').data().scrollListvIEw.scrollTo(0,offSetposition * -1,0);}$('#wrapper"').live("pageshow",function() {if (getTfscCardNumber() === ''){ $('#passportNumberLabel').CSS('display','none'); $('#passportNumber').CSS('display','none'); $('#passportNumber').attr("Disabled",true);}else{ $('#passportNumberLabel').CSS('display','block'); $('#passportNumber').CSS('display','block'); $('#passportNumber').attr("Disabled",false);}loadForm($('#AccountDetailsForm')[0]);});
如果需要我可以提供更多的代码,但我确定其余的代码是好的,但如果有人想看看任何其他代码只是问
这个错误意味着什么,任何人都可以看到出错的地方?
解决方法 这是Safari及其处理输入类型=“tel”的错误.我不担心.我遇到了同样的问题然后我发现了这个:https://github.com/jquery/jquery-mobile/issues/2341
总结以上是内存溢出为你收集整理的使用应用程序在Safari上获取“断言失败:(匿名函数)”全部内容,希望文章能够帮你解决使用应用程序在Safari上获取“断言失败:(匿名函数)”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)