我有 90 个 html 文件,其中播放音频文件(链接错误),我需要更改每个文件中音频文件的 src。
来自
<embed src="../audio/" autostart=false width=0 height=0 id="sound1" enablejavascript="true">
至:
文件 1:
<embed src="../audio/1.mp3" autostart=false width=0 height=0 id="sound1" enablejavascript="true">
文件2:
<embed src="../audio/2.mp3" autostart=false width=0 height=0 id="sound1" enablejavascript="true">
...
对于自动化方法有什么建议吗? 谢谢
稍后编辑:
每个文件的新 src 都不同...是否有可能为每个文件自动填充此内容?对于文件1 -> src1,文件2 -> src2 ...
最佳答案
Notepad++ 有一些很好的搜索和替换功能,您可以在此处使用。
关于html - 编辑多个 HTML 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4193361/