简体   繁体   English

使用chrome开发人员工具在html页面中编辑嵌入式Javascript

[英]Editing Embedded Javascript in html page using chrome developer tools

asking again the question Using Google Chrome to debug and edit javascript embedded in HTML page 再次询问使用Google Chrome调试和编辑HTML页面中嵌入的javascript的问题

if there is a Javascript embedded in html page can i edit it .in this question he accepted an answer.In this answer's second comment by antyrat "Well you're right, but you can edit this at Elements tab instead." 如果在html页面中嵌入了Javascript,我可以编辑它。在这个问题中,他接受了答案。在这个答案中,antyrat的第二条评论“嗯,你是对的,但你可以在Elements选项卡中编辑它。” but when i edit javascript in script tag changes doesn't affect code flow.Please guideline is it possible to change embedded js in html page in chrome dev tools or not ?? 但是当我在脚本中编辑javascript标签更改不会影响代码流。请指导是否可以在chrome dev工具中更改html页面中的嵌入式js?

You can make changes to the javascript in a page using chrome developer tools but those changes do not get saved. 您可以使用chrome开发人员工具更改页面中的javascript,但这些更改不会被保存。 You will need to manually go and change it in the respective .js file for the changes to take effect. 您需要在相应的.js文件中手动进行更改以使更改生效。 Only if you want to preview the change temporarily, you can try those with the chrome developer tools 仅当您想要临时预览更改时,您可以使用chrome开发人员工具尝试这些更改

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM