18910140161

HTML-如何使用javascript在警报框中显示多个对象值-堆栈溢出

顺晟科技

2022-10-19 14:47:45

167

function myFunction()
{
    alert(document.getElementById("myname").value+','+document.getElementById("myphone")+','+document.getElementById("mycountry")+','+document.getElementById("myemail"));
   
}

顺晟科技:

对我来说很简单

我只是稍微重构一下你的函数

  • TAG:
相关文章
我们已经准备好了,你呢?
2024我们与您携手共赢,为您的企业形象保驾护航