Jquery的Json的解析错误 [英] Jquery Json Parse error
问题描述
这一次,我通过JSON的解析错误锁定。目前,我在Asp.net MVC开发Web应用程序4使用jQuery Mobile.In页在那里我有文本框和按钮后,出现此问题
This time I am locked by the Json Parse error. Currently I am Developing Web application in Asp.net MVC 4 with jQuery Mobile.In pages where I have text box and button, this issue occurs
我使用的的jQuery 2.1.1 JS在
I am using jquery 2.1.1 js file .. Error Occuring in
jQuery.parseJSON = function( data ) {
return JSON.parse( data + "" ); // Here data comes as undefined
};
code。在视图
下面有文本框和按钮在我的网页
Code in the View The below has textbox and buttons in my page
<div class="HwySearchTextBoxSmaller">
@Html.TextBoxFor(Model => Model.txtPickingScan, new { @autofocus = "autofocus" })
</div>
<div id="btn" style="float: left; margin-top: 1.2em; margin-left: 1em;">
<input type="submit" id="btnSearchMP" name="btnSearchMP" class="Hwy905SearchIcon" data-role="none" value="" />
</div>
<div id="dButton">
<input type="submit" id="btnMPSearch" name="btnMPSearch" data-theme="d" value="@Resources.ViewBatch" />
<input type="submit" id="btnMPSearch1" name="btnMPSearch" data-theme="d" value="@Resources.ViewGrp" />
</div>
每当我进入到文本框中,在模糊,按钮点击,在KEYUP及其他相关事件此错误弹出
该错误的图片我已经上传。
The error picture I have uploaded.
页未在任何浏览器中工作,因为这个问题。
page is not working in any browser because of this issue.
请请帮助我。肯定我需要找到一个解决方案。请帮我
Please Please help me . Definitely I need to find a solution for this. Please help me
而是使用jQuery 2.1.1文件我用了谷歌的API,jQuery的libray这也表明了萨默尔误差
下面是code的DOM图片
Below is the dom image of the code
推荐答案
喜得到了上述问题的解决方案。事实上,而捆绑js文件我删除了验证和验证不显眼的js文件,问题得到了解决。感谢所有帮助我
Hi Got the solution for the above problem. Actually while bundling the js files I removed validate and validate unobtrusive js files and the problem got solved . Thank you to all for helping me
这篇关于Jquery的Json的解析错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!