能具体说明是什么弹框组件么,这个content的写法感觉很奇怪,如果非要这么写,应该先把vue中的数据填充到一个contentStr字符串中,然后再调用对应的弹框组件方法,将contentStr赋值给content let contentStr = `<div>${this.site.name}</div>` me.layui_layer.open({ // ... content: contentStr })
能具体说明是什么弹框组件么,这个
content
的写法感觉很奇怪,如果非要这么写,应该先把vue
中的数据填充到一个contentStr
字符串中,然后再调用对应的弹框组件方法,将contentStr
赋值给content