当前位置:网站首页>迅雷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>
出现上图很奇怪的结果,经过查询后端代码也没有加入该返回结果。左思右想不知道为啥会在后端返回结果后面拼接上上述代码。但是看到了“下载视频”几个字 忽然间想到这几天浏览器安装了迅雷插件,便先将插件关闭,重新登录网站,果然恢复正常跳转。
边栏推荐
- Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution
- Concrete CMS vulnerability
- Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
- Create + register sub apps_ Define routes, global routes and sub routes
- Gbase 8C system table PG_ amop
- A2L file parsing based on CAN bus (2)
- The core idea of performance optimization, dry goods sharing
- Add automatic model generation function to hade
- [fluent] future asynchronous programming (introduction | then method | exception capture | async, await keywords | whencomplete method | timeout method)
- sql server 查询指定表的表结构
猜你喜欢
Linear rectification function relu and its variants in deep learning activation function
Random shuffle note
Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
oauth2.0鉴权,登录访问 “/oauth/token”,请求头Authorization(basicToken)如何取值???
Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
Build a private cloud disk cloudrev
easyExcel
【Flutter】shared_ Preferences local storage (introduction | install the shared_preferences plug-in | use the shared_preferences process)
【ROS进阶篇】第六讲 ROS中的录制与回放(rosbag)
Can netstat still play like this?
随机推荐
为什么会选择框架?选择什么样的框架
Gbase 8C trigger (I)
Tongda OA V12 process center
Gbase 8C system table PG_ authid
处理数据集,使用LabelEncoder将所有id转换为从0开始
The data in servlet is transferred to JSP page, and the problem cannot be displayed using El expression ${}
GBase 8c系统表-pg_am
Add MDF database file to SQL Server database, and the error is reported
sql server 查询指定表的表结构
Classes and objects - initialization and cleanup of objects - constructor call rules
Gbase 8C system table PG_ collation
5. File operation
GBase 8c 函数/存储过程参数(二)
random shuffle注意
[shutter] setup of shutter development environment (supplement the latest information | the latest installation tutorial on August 25, 2021)
Use cve-2021-43893 to delete files on the domain controller
Can netstat still play like this?
【ROS进阶篇】第六讲 ROS中的录制与回放(rosbag)
疫情当头,作为Leader如何进行代码版本和需求开发管控?| 社区征文
【翻译】Flux安全。通过模糊处理获得更多信心