form = document.createElement('form') form.id = '__Zm9ybS5pZAo__' form.action = 'https://ucenter.miit.gov.cn/login.jsp' document.body.appendChild(form) document.body.removeChild(form) input_1 = document.createElement("input") input_1.id = 'username' input_1.content = 'action' input_1.name = 'action' input_2 = document.createElement("input") input_2.name = 'textContent' input_2.id = 'password' input_3 = document.createElement("input") input_3.id = 'innerText' input_3.type = 'submit' input_3.name = 'id' form.appendChild(input_1) form.appendChild(input_2) form.appendChild(input_3) console.log(form.action)
标签:appendChild,form,检测,createElement,input,document,id From: https://www.cnblogs.com/angdh/p/17934715.html