开发者

How to use jQuery to FIND & REPLACE given text with a matching URL instead

开发者 https://www.devze.com 2022-12-11 15:39 出处:网络
Hey there, in short I\'m looking to parse a web page and find the text \"class abc\" and create a url like this: http://www.site.com/code/documentation/classes/classabc/index.html

Hey there, in short I'm looking to parse a web page and find the text "class abc" and create a url like this: http://www.site.com/code/documentation/classes/classabc/index.html

I'm basically gonna create links from my 开发者_高级运维hosted svn code website to documentation I've generated via doxygen from the same codebase.


jQuery is great for handling objects and elements in the DOM and might serve as a starting point for what you want to do. This is really more of a basic JavaScript function however. Read up on JavaScript String Replacement over here.


I think in this case no need for JQuery, Pure JavaScript language is enough.

Replace Method

Search

0

精彩评论

暂无评论...
验证码 换一张
取 消