我学习了React,并希望在这样的对话框中显示xml:import AppBar from '@material-ui/core/AppBar';xml version="1.0"?更新感谢@DanAndreassonimport beautify from 'xml-beautifier';
const xml =
我有一个父组件,它将一个数组传递给一个子组件,让我们把它称为包含一堆东西的“桶”。,并将它定义为一个数组,如下所示: bucket: Array现在,在我的子组件的挂载部分,我想拿着这桶东西,用它做点什么。然而,由于某种原因,它显示为空的。所以当我用我的孩子做这个的时候..。 console.log(this.bucket.length)..。我得了0。当我检查Vue de