0
我正尝试利用此#1例来构造我Firebasedata: Add a list item through javascript建立从火力地堡数据的列表
HTML:
First name:
<input type="text" id="firstname">
<br>
<p>Your first name is: <b id='boldStuff2'></b>
</p>
<p>Other people's names:</p>
<ol id="demo"></ol>
<input type='button' onclick='changeText2();' value='Submit' />
当我尝试复制代码直接进入我的项目进行测试,我收到错误: 未捕获的ReferenceError:changeText2未定义 at HTMLInputElement.onclick“
此外,当我尝试将代码复制到新的小提琴时,它不起作用。
任何帮助深表感谢
你在哪里声明你的'changeText2'函数在你的项目中? –