javascript的小问题,急,在线等!

alex_shw 2002-09-03 10:53:37
论坛的大虾们,在alert()函数中如何插入字符串变量?
比如alert("hello"),有一个name变量要加在hello后面。怎么写?
是不是alert("hello"&name)?
谢谢各位!
...全文
47 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
helpmate527 2002-09-03
  • 打赏
  • 举报
回复
alert("hello"+name)


JavaCoffee 2002-09-03
  • 打赏
  • 举报
回复
alert("hello" + name)
Davelu 2002-09-03
  • 打赏
  • 举报
回复
alert("hello"+name)

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧