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

出现上图很奇怪的结果,经过查询后端代码也没有加入该返回结果。左思右想不知道为啥会在后端返回结果后面拼接上上述代码。但是看到了“下载视频”几个字 忽然间想到这几天浏览器安装了迅雷插件,便先将插件关闭,重新登录网站,果然恢复正常跳转。
边栏推荐
- Gbase 8C system table PG_ amproc
- SQL server queries the table structure of the specified table
- GBase 8c触发器(三)
- 【 tutoriel】 Chrome ferme les cors et les messages de la politique inter - domaines et apporte des cookies à travers les domaines
- Source code analysis | layout file loading process
- Build a private cloud disk cloudrev
- 错误Invalid bound statement (not found): com.ruoyi.stock.mapper.StockDetailMapper.xxxx解决
- Matlab tips (24) RBF, GRNN, PNN neural network
- Counter统计数量后,如何返回有序的key
- Apple releases MacOS 11.6.4 update: mainly security fixes
猜你喜欢

SQL statement
![[shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)](/img/6e/67bc187a89fb9125856c78c89f7bfb.gif)
[shutter] bottom navigation bar page frame (bottomnavigationbar bottom navigation bar | pageview sliding page | bottom navigation and sliding page associated operation)

Practice of traffic recording and playback in vivo

Your family must be very poor if you fight like this!

HW initial preparation

【翻译】后台项目加入了CNCF孵化器
![ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc](/img/cb/145937a27ef08050a370d5a255215a.jpg)
ASP. Net core 6 framework unveiling example demonstration [02]: application development based on routing, MVC and grpc

4. Classes and objects

A2L file parsing based on CAN bus (2)

Baidu map - surrounding search
随机推荐
Gbase 8C create user / role example 2
SqlServer行转列PIVOT
怎么将yolov5中的PANet层改为BiFPN
Source code analysis | resource loading resources
处理数据集,使用LabelEncoder将所有id转换为从0开始
Pytest (6) -fixture (Firmware)
Gbase 8C system table PG_ am
Gbase 8C system table PG_ conversion
Baidu map - surrounding search
GBase 8c系统表pg_database
定了,就选它
[translation] modern application load balancing with centralized control plane
搭建私有云盘 cloudreve
sql server 查詢指定錶的錶結構
Can netstat still play like this?
GBase 8c系统表-pg_authid
[fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
[tutorial] chrome turns off cross domain policies CORS and samesite, and brings cookies across domains
【教程】chrome关闭跨域策略cors、samesite,跨域带上cookie
Interview stereotyped version