[英]Changing external html links using javascript
Process Explaination An external application (A) would send me some html files and my application (B) is responsible to change each links inside this html page and save it in another location.过程说明 外部应用程序 (A) 将向我发送一些 html 文件,而我的应用程序 (B) 负责更改此 html 页面内的每个链接并将其保存在另一个位置。
Steps of requirement需求步骤
Could someone guide me if there is any way forward to develop these using java or javascript?如果有任何方法可以使用 java 或 javascript 开发这些,有人可以指导我吗?
If you have access to the DOM then document.queryselector will enable you to select all the relevant nodes.如果您有权访问 DOM,则 document.queryselector 将使您能够访问 select 所有相关节点。
I'll see if I can come up with something more fully fledged when I'm at a computer, unless someone beats me to it.当我在电脑前时,我会看看我是否能想出更成熟的东西,除非有人打败了我。 :-)
:-)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.