5 js output methods pop-up boxes

小云云
Release: 2018-03-19 17:25:56
Original
2128 people have browsed it

This article mainly shares with you 5 js output methods pop-up boxes, I hope it can help you.

alert("alert,只有确定按钮"); confirm("confirm,确定、 取消两个按钮"); console.log("console.log()控制台输出的信息,例如百度用来做招聘信息,阅读到的人大都是开发人员"); prompt("prompt有输入信息的输入框"); document.write("在页面输出信息
可以带HTML标签");
Copy after login

Escape characters


Copy after login

\” Convert to double quotes

\'Convert to single quotes

\nConvert lines

\r Turn Enter

Related recommendations:

JS pop-up box clicks outside to hide the skill code

Vue only pops once Sharing examples of pop-up boxes

Detailed explanation of solving the problem of alert pop-up boxes displaying garbled Chinese characters when JavaScript is introduced

The above is the detailed content of 5 js output methods pop-up boxes. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!