当前位置:网站首页>迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常
2022-07-03 02:42:00 【华大哥】
最近在调试公司一个项目,其中使用了js,在登录该系统时,页面不能正常跳转。但是我使用别的浏览器(调试使用的是谷歌浏览器)能够正常跳转。这就很奇怪,使用页面调试工具,获取到后端的返回结果如下图:
不经意间我调试了js里面ajax提交返回的formResult数据结果,发现返回的json数据格式无法解析,后面多了一块html代码:
$('#fm-info').form('submit',{
url: '/admin/shop/edit/1',
onSubmit: function(){
return $(this).form('validate');
},
success:function(data){
console.log(data, 9999)
obj = $.parseJSON(data);
if(obj.state){
$.messager.alert('提示信息', obj.message,'info', function(){
var urlRecordList='/admin/shop/list';
parentRefreshTab('店铺列表',urlRecordList);
parentCloseCurrentTab();
});
}else{
$.messager.alert('提示信息', obj.message);
}
}
});
{"state":true,"message":"更新店铺成功!","data":{"id":63186}}<div class="xl-chrome-ext-bar" id="xl_chrome_ext_{4DB361DE-01F7-4376-B494-639E489D19ED}" style="display: none;">
<div class="xl-chrome-ext-bar__logo"></div>
<a id="xl_chrome_ext_download" href="javascript:;" class="xl-chrome-ext-bar__option">下载视频</a>
<a id="xl_chrome_ext_close" href="javascript:;" class="xl-chrome-ext-bar__close"></a>
</div>
出现上图很奇怪的结果,经过查询后端代码也没有加入该返回结果。左思右想不知道为啥会在后端返回结果后面拼接上上述代码。但是看到了“下载视频”几个字 忽然间想到这几天浏览器安装了迅雷插件,便先将插件关闭,重新登录网站,果然恢复正常跳转。
边栏推荐
- [fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
- 左值右指解释的比较好的
- Create + register sub apps_ Define routes, global routes and sub routes
- Hcip137-147 title + analysis
- Gbase 8C system table PG_ aggregate
- Unity3d human skin real time rendering real simulated human skin real time rendering "suggestions collection"
- [shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)
- tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch
- 【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
- GBase 8c触发器(三)
猜你喜欢
Build a private cloud disk cloudrev
HW-初始准备
Restcloud ETL cross database data aggregation operation
HW initial preparation
[advanced ROS] Lesson 6 recording and playback in ROS (rosbag)
[Hcia]No.15 Vlan间通信
《MATLAB 神经网络43个案例分析》:第43章 神经网络高效编程技巧——基于MATLAB R2012b新版本特性的探讨
Baidu map - surrounding search
What does "where 1=1" mean
Tongda OA homepage portal workbench
随机推荐
Gbase 8C system table PG_ auth_ members
Add automatic model generation function to hade
JMeter performance test JDBC request (query database to obtain database data) use "suggestions collection"
Gbase 8C function / stored procedure parameters (II)
Hcip137-147 title + analysis
tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch
Gbase 8C trigger (II)
Gbase 8C system table PG_ collation
[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)
HW initial preparation
Gbase 8C system table PG_ class
当lambda没有输入时,是何含义?
[fluent] JSON model conversion (JSON serialization tool | JSON manual serialization | writing dart model classes according to JSON | online automatic conversion of dart classes according to JSON)
sql server 查詢指定錶的錶結構
Choose it when you decide
Gbase 8C system table PG_ conversion
Your family must be very poor if you fight like this!
MUX VLAN Foundation
Pytest (6) -fixture (Firmware)
random shuffle注意