๋ฉ์์ง์ Javascript ๋ณ์๋ฅผ ์ด๋ป๊ฒ ํฌํจํฉ๋๊น?
swal({ ์ ๋ชฉ: "์ค๋ฅ!", ํ ์คํธ: "์๋ฐ์คํฌ๋ฆฝํธ ๋ณ์?" ์ ํ: "์ค๋ฅ", ConfirmButtonText: "๋ฉ์ง๋ค" });
var myVariable = 'Hello World';
swal({
title: "Error!",
text: myVariable,
type: "error",
confirmButtonText: "Cool"
});
@t4t5 @WeirdestYeti @zenflow ๋ณ์๋ฅผ ํ ๋นํ ํ ํ ์คํธ ์์์ ํธ์งํ๋ ค๋ฉด ์ด๋ป๊ฒ ํด์ผ ํ๋์?
@jsandleraol https://sweetalert.js.org/docs/#swal -text
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
var myVariable = 'Hello World'; swal({ title: "Error!", text: myVariable, type: "error", confirmButtonText: "Cool" });