javascript - How should anonymous functions in vueJS obtain the context of Component?
大家讲道理
大家讲道理 2017-07-05 10:39:39
0
1
730

There is the following configuration. If you want to generate a button based on the configuration, how can you pass in the context of this control? Or is there a better way to implement it?
Wait online for ten minutes~

        buttons: [{
                    action: function (context) {
                         
                    },
                    text: "查询"
                }, {
                    action: function (context) {
                        
                    },
                    text: "重置"
                }]
大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
世界只因有你

Use mixins

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template