ele+vue简单操作

ac楚天 / 2023-05-23 / 原文

绑定值和字符串拼接:

1、:title="`字符串${xx}`"

2、:title="'字符串' + xx"

3.异步回调

setTimeReflush: function () {
            var _this = this;
            return new Promise(function (resolve, reject) {
                $.post(BaseUrl + '', function (d) {
                   resolve(d.data)
                });
            })
        },
View Code