JS中常用的输出方式

  1. 页面弹出框:alert("hello");
  2. 控制台输出:
    console.log("hello");
    console.warn("hello");
    console.error("hello");
  3. 光标定在输入框:prompt("hello");
  4. 用于逻辑判断:confirm("hello");
发布了72 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qzcrystal/article/details/83152807
今日推荐