当前位置:网站首页>Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
Thunderbolt Chrome extension caused the data returned by the server JS parsing page data exception
2022-07-03 02:46:00 【Brother Hua】
Recently, I was debugging a project in the company , It uses js, When logging into the system , The page cannot jump normally . But I use other browsers ( Google browser is used for debugging ) Can jump normally . That's strange , Use page debugging tools , The return result obtained from the backend is shown in the figure below :

Inadvertently, I debugged js Inside ajax Submit returned formResult Data results , Discover returned json The data format cannot be parsed , There is an extra piece in the back html Code :
$('#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(' Prompt information ', obj.message,'info', function(){
var urlRecordList='/admin/shop/list';
parentRefreshTab(' Shop list ',urlRecordList);
parentCloseCurrentTab();
});
}else{
$.messager.alert(' Prompt information ', obj.message);
}
}
}); {"state":true,"message":" Store update succeeded !","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"> Download Video </a>
<a id="xl_chrome_ext_close" href="javascript:;" class="xl-chrome-ext-bar__close"></a>
</div>

A strange result appears in the figure above , After querying, the back-end code did not add the returned result . I wonder why the above code is spliced behind the back-end return result . But I saw “ Download Video ” A few words Suddenly it occurred to me that the browser has installed Xunlei plug-in these days , Close the plug-in first , Log in to the website again , Sure enough, the jump returned to normal .
边栏推荐
- Monitoring and management of JVM
- Concrete CMS vulnerability
- [tutorial] chrome turns off cross domain policies CORS and samesite, and brings cookies across domains
- 二维格式数组格式索引下标连续问题导致 返回json 格式问题
- JS的装箱和拆箱
- Baidu map - surrounding search
- Linear rectification function relu and its variants in deep learning activation function
- Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers
- [shutter] banner carousel component (shutter_wiper plug-in | swiper component)
- Deep learning: multi-layer perceptron and XOR problem (pytoch Implementation)
猜你喜欢

Deep Reinforcement Learning for Intelligent Transportation Systems: A Survey 论文阅读笔记

Error invalid bound statement (not found): com ruoyi. stock. mapper. StockDetailMapper. XXXX solution

迅雷chrome扩展插件造成服务器返回的数据js解析页面数据异常

Practice of traffic recording and playback in vivo

Deep reinforcement learning for intelligent transportation systems: a survey paper reading notes
![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

Baidu map - surrounding search

【翻译】后台项目加入了CNCF孵化器

Didi programmers are despised by relatives: an annual salary of 800000 is not as good as two teachers

错误Invalid bound statement (not found): com.ruoyi.stock.mapper.StockDetailMapper.xxxx解决
随机推荐
Mathematical statistics -- Sampling and sampling distribution
where 1=1 是什么意思
[fluent] futurebuilder asynchronous programming (futurebuilder construction method | asyncsnapshot asynchronous calculation)
GBase 8c系统表pg_cast
Gbase 8C function / stored procedure parameters (I)
Pytest (6) -fixture (Firmware)
How to change the panet layer in yolov5 to bifpn
Choose it when you decide
xiaodi-笔记
sql server 查詢指定錶的錶結構
Summary of interview project technology stack
SQL statement
Concrete CMS vulnerability
Javescript 0.1 + 0.2 = = 0.3 problem
[principles of multithreading and high concurrency: 1_cpu multi-level cache model]
The difference between left value and right value in C language
Practice of traffic recording and playback in vivo
Packing and unpacking of JS
MATLAB小技巧(24)RBF,GRNN,PNN-神经网络
tensorflow转pytorch笔记;tf.gather_nd(x,y)转pytorch