<a data-href="/static/image/2.jpg" />
识别到图片:
/static/image/1.jpg
/static/image/2.jpg
//图片
document.writeln("<img src=\"/jsimg/jsRender.jpg\" title=\"这是js渲染的图片\" />");
//脚本
document.writeln("<script src=\"/js/renderOtherJs.js\"></script>");
//样式
document.writeln("<link rel=\"stylesheet\" href=\"/css/jsrender.css\">");
//超链接
document.writeln("<a href=\"/article/100.html\">超链接</a>");
/jsimg/jsRender.jpg
/js/renderOtherJs.js
/css/jsrender.css
/article/100.html
var urlObj = {
"url": '\/jsImg\\parks.png'
};
\/jsImg\\parks.png
,并自动对链接进行转义处理得到原始地址,下载后正常处理链接地址。var jsonObj = [
{ "imgUrl": "/static/image/test.jpg", "js-Url": "/static/js/js.js", "cssUrl":"/static/css/style.css" },
]
/static/image/test.jpg
2.脚本链接:/static/js/js.js
3.样式链接:/static/css/style.css
<script>
var jsonData = { "href": "javascript:Mb.jumpTo({"jumpModuleId":422,"colUrl":"/home_next.jsp?id=999888777","colId":106});" };
</script>
识别出超链接:/home_next.jsp?id=999888777
匹配识别
内容。