我有这个脚本:
<script>
$(document).ready(function () {
$("#changeResumeStatus").click(function () {
$.get("{% url 'main:changeResumeStatus' %}", function (data) {
if (data['message'] == 'hidden') {
$("#resumeStatus").text("??????");
} else {
$("#resumeStatus").text("????????????");
}
}, "json");
});
});
</script>
Run Code Online (Sandbox Code Playgroud)
我在Google Chrome控制台中收到以下错误消息:
不推荐使用event.returnValue.请改用标准的event.preventDefault().
我正在使用jQuery v1.10.2并且#changeResumeStatus是一个<span>.
我的剧本出了什么问题?
在使用 create-react-app 进行开发时,我的浏览器在出现警告时进入调试器模式:
它打破了 react-dev-tools 的源代码:
// --- Welcome to debugging with React DevTools ---
// This debugger statement means that you've enabled the "break on warnings" feature.
// Use the browser's Call Stack panel to step out of this override function-
// to where the original warning or error was logged.
Run Code Online (Sandbox Code Playgroud)
如何停用此行为?
我正在尝试对恶意 JavaScript 进行逆向工程。当我最初加载侧面时,会注入 JS 代码,其中包括 -debugger- 语句并将断点注入我的 chrome 开发人员控制台。
通过 stackoverflow 阅读
您对如何分析/调试脚本有什么想法吗?
实际上,我什至无法使用 chrome 开发人员工具中的控制台,因为一切都冻结了。