我试图使文本存储在变量sendSpecialChat
大写,但我找不出为什么它不起作用。这其实不是我想要做的,但我简化了代码:使变量文本大写
var sendSpecialChat = hi;
document.writeIn(sendSpecialChat.toUpperCase());
document.getElementById('print').innerHTML = "sendSpecialChat";
<p id="print"></p>
虽然,这是行不通的。我的代码有什么问题?
'的ReferenceError:喜不defined','类型错误: document.writeIn不是一个函数,而sendSpecialChat和sendSpecialChat是不同的东西 – Oriol