elementui中Notification组件添加点击事件1. 官⽅⽂档
2. 添加点击事件,传参
张参谋长那点事儿handleClick() {
let telNo = "1111",
message = "22222",
_this = this; //函数作⽤域问题
this.$notify({
title: "通知消息",
position: "bottom-right",ie是什么
dangerouslyUHTMLString: true,
message: `<p >号码:<i>${telNo}</i></p>`,
duration: 0,
type: "warning",
onClick() {
_this.defineCallBack(message); //⾃定义回调,message为传的参数
}
});
},
/
/点击事件回调
defineCallBack(message) {
console.log(message);
媚俗什么意思},
3. 按⼀定时间顺序弹出消息通知
网店营销培训//按⼀定时间顺序弹出消息通知
malicious
notifyByOrder() {
let data = ["aaaa", "bbbbb", "ccccc"];
for (let i = 0; i < data.length; i++) {
cod是什么意思
let item = data[i];
2019考研英语一答案
tTimeout(() => {
this.$notify({
title: `通知${i + 1}`,
position: "bottom-right",
message: `通知内容${item}`,
duration: 0,
type: "warning"
});
}, i * 5000);xch
暑假小学生夏令营
班会演讲稿}
}