其他分享
首页 > 其他分享> > js自动填充功能

js自动填充功能

作者:互联网

javascript:(function(){document.evaluate('//*[@id="BugTitle"]',document).iterateNext().value="test";document.evaluate('//div[@id="BugDescriptionDiv"]/div/div/div/div/div/div/button[3]/span/span',document).iterateNext().click();document.evaluate('//*[@id="BugVersionReport"]',document).iterateNext().value="Server_V1.0.0.1";document.evaluate('//*[@id="BugModule"]',document).iterateNext().value="Server";})()

 

点击:document.evaluate('//div[@id="BugDescriptionDiv"]/div/div/div/div/div/div/button[3]/span/span',document).iterateNext().click();

输入值:document.evaluate('//*[@id="BugTitle"]',document).iterateNext().value="test";

标签:span,iterateNext,填充,evaluate,js,自动,div,document,id
来源: https://www.cnblogs.com/ai594ai/p/16277556.html