我不明白为什么只有stFunction()作品?为什么我得到语法错误(意外的标记".")ndFunction()和错误rdFunction()?谢谢你的帮助
function stFunction() {
var x = document.getElementById("id1");
x.value = x.value.toUpperCase();
}
function ndFunction() {
var y.value = document.getElementById("id2").value.toUpperCase();
}
function rdFunction() {
var y = {};
y.value = document.getElementById("id3").value.toUpperCase();
}
Run Code Online (Sandbox Code Playgroud)