好的,所以我想在用户点击时创建变量,每次点击都会添加一个新变量。我目前正在使用jquery和javascript我不能在服务器端执行此操作,这必须在浏览器中完成。newCount=document.getElementById('hello').innerHTML;$('.hello').click(function(){//setcountfastenumerationnewCount++;varhello+newCount='HelloWorld';});所以我希望变量是hello1、hello2、hello3、hello4等。 最佳答案