当前位置:网站首页>迅雷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>

出现上图很奇怪的结果,经过查询后端代码也没有加入该返回结果。左思右想不知道为啥会在后端返回结果后面拼接上上述代码。但是看到了“下载视频”几个字 忽然间想到这几天浏览器安装了迅雷插件,便先将插件关闭,重新登录网站,果然恢复正常跳转。
边栏推荐
- 二维格式数组格式索引下标连续问题导致 返回json 格式问题
- Serious security vulnerabilities reported by moxa mxview network management software
- Gbase 8C system table PG_ collation
- The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
- [principles of multithreading and high concurrency: 1_cpu multi-level cache model]
- cvpr2022去雨去雾
- Gbase 8C system table PG_ amproc
- The use of Flink CDC mongodb and the implementation of Flink SQL parsing complex nested JSON data in monggo
- Today, it's time to copy the bottom!
- Random shuffle note
猜你喜欢

【翻译】具有集中控制平面的现代应用负载平衡

Xiaodi notes

Random shuffle note

Restcloud ETL cross database data aggregation operation

easyPOI

Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)

The Linux server needs to install the agent software EPS (agent) database
![[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)](/img/04/88ce45d370a2e6052c2fce558aa531.jpg)
[flutter] example of asynchronous programming code between future and futurebuilder (futurebuilder constructor setting | handling flutter Chinese garbled | complete code example)

Matlab tips (24) RBF, GRNN, PNN neural network

where 1=1 是什么意思
随机推荐
Cancer biopsy instruments and kits - market status and future development trends
[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)
簡單理解svg
Basic operation of binary tree (C language version)
Two dimensional format array format index subscript continuity problem leads to return JSON format problem
【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
GBase 8c 创建用户/角色 示例二
SQL Server Query spécifie la structure de la table
Gbase 8C system table PG_ am
Create + register sub apps_ Define routes, global routes and sub routes
HW-初始准备
The left value and the right finger explain better
[fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
Gbase 8C system table PG_ collation
The solution of "the required function is not supported" in win10 remote desktop connection is to modify the Registry [easy to understand]
处理数据集,使用LabelEncoder将所有id转换为从0开始
random shuffle注意
Informatics Olympiad one general question bank 1006 a+b questions
The use of Flink CDC mongodb and the implementation of Flink SQL parsing complex nested JSON data in monggo