js往标签下插入标签的方法

js="document.getElementsByClassName('CodeMirror-line')[0].innerHTML = 'xxxxxx'"
dr.execute_script(js) 

原来

 插入后

xxxx 也可以换成其他一连串标签

猜你喜欢

转载自www.cnblogs.com/kaibindirver/p/11657582.html