简体   繁体   English

如何在Chrome中本地编辑JavaScript文件

[英]How can I made edit to JavaScript file locally in Chrome

How can I made edit to JavaScript file locally in Chrome? 如何在Chrome中本地编辑JavaScript文件?

I following this article: https://www.sitepoint.com/edit-source-files-in-chrome/ 我关注这篇文章: https : //www.sitepoint.com/edit-source-files-in-chrome/

But in step 2, I can't edit the Javascript file. 但是在步骤2中,我无法编辑Javascript文件。 For some reason the file is ready only in the 'Sources' Panel. 由于某种原因,该文件仅在“源”面板中可以使用。

How can I edit the javascript file locally? 如何在本地编辑javascript文件?

Thank you. 谢谢。

Just FYI: The article you linked to is from 2013. Chrome dev tools changes almost weekly. 仅供参考:您链接的文章来自2013年。Chrome开发者工具几乎每周都会更改。

Sometimes just doing hard refresh on the page will allow you to edit the .js file from the Sources panel. 有时,仅在页面上进行硬刷新即可使您从“源”面板中编辑.js文件。 It should be as simple as right clicking and choosing Save As... . 它应该像右键单击并选择“ Save As...一样简单。

If that doesn't work perhaps you could provide a url? 如果这样不起作用,也许您可​​以提供一个网址?

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

相关问题 如何使用Javascript或jQuery表单编辑.txt文件 - How Can I Edit a .txt file using Javascript or jQuery forms 如何在本地编辑项目并将更改推送到我的VPS? - How can I edit a project locally and push the changes to my vps? 如何使用JavaScript将Google Chrome DevTools控制台设置为全屏显示? - How can the Google Chrome DevTools Console be made fullscreen using JavaScript? 如何在本地保存javascript变量? - How can I save javascript variables locally? 如何在本地运行的javascript文件中执行本地python文件? - How can I execute a local python file in a locally run javascript file? 如何在Chrome扩展程序中本地保存信息? - How can I save information locally in my chrome extension? 在另一个 js 文件中进行 dom 操作后,如何运行 javascript 文件? - How can I run javascript file after dom manipulation made in another js file? 我如何*本地*保存由javascript生成的.html文件(在* local * .html页面上运行)? - How can I *locally* save an .html file generated by javascript (running on a *local* .html page)? 我可以使用javascript在本地创建并保存一个庞大的文件吗? - Can I use javascript to locally create and save a humongous file? chrome 是如何忽略 javascript 的以及如何克服这个问题? - How is chrome made to ignore javascript and how to overcome this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM