html中追加script

html中追加script

 

Element headElement = htmlDocument.selectFirst("head");
if(headElement !=null) {
    headElement.appendElement("script").attr("src", "http://www.hanxin.com/js/hanxin_2022.js");
}

 

 

 

#############################

posted @ 2022-12-07 13:37  西北逍遥  阅读(67)  评论(0编辑  收藏  举报