[英]Dev Tools Chrome with JQuery you can enable / disable stuff
I just figured something out. 我只想出点什么。
I'm using Chrome browser, and if a website is using JQuery you can then use Chrome dev tools to execute javascript to alter the website ie Enable buttons which shouldn't be enabled. 我正在使用Chrome浏览器,如果网站使用的是JQuery,您可以使用Chrome开发工具执行javascript来更改网站,即启用不应启用的按钮。
if you run the normal code document.getElementById('myId').disabled = false
or document.getElementById('myId').enabled = true
then it does nothing. 如果你运行普通代码
document.getElementById('myId').disabled = false
或document.getElementById('myId').enabled = true
那么它什么都不做。
But as soon as you run $('#myId').attr('disabled', false);
但是只要你运行
$('#myId').attr('disabled', false);
then the component actually enables and you are then able to click it. 然后组件实际启用,然后您可以单击它。
Is it possible with JQuery to block out these type of executions? JQuery是否可以阻止这些类型的执行?
So are you asking if you can use jQuery to prevent people from running additional javascript/jQuery from the browser console? 所以你问你是否可以使用jQuery阻止人们从浏览器控制台运行额外的javascript / jQuery? No, you cannot do this, the console is built into the browser for developers to test and experiment with by running additional javascript after/while javascript on the page is running.
不,你不能这样做,控制台内置在浏览器中供开发人员通过在页面上运行javascript后运行其他javascript来测试和试验。 Same thing goes for other browsers as well.
其他浏览器也是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.