我有一个简单的问题
如何更改
window.alert ('Please input data into the \"Part No.\" field.');
只是文本,没有警报
Please input data into the \"Part No.\" field.
最佳答案
这取决于您希望文本放置的位置:
var text = 'Please input data into the \'Part No.\' field.'
//inside a div
div.innerHTML = text;
//the bottom of the body
document.body.innerHTML+=text;
//an input field
input.value = text;
//rewriting the document
document.open();
document.write(text);
document.close();
关于Javascript window.alert 更改为文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16765153/