可以读取此数据
dataSet = [
["Gavin Cortez", "Team Leader", "San Francisco", "2860", "2008/10/26", "$235,500"],
["Martena Mccray", "Post-Sales support", "Edinburgh", "8240", "2011/03/09", "$324,050"],
["Unity Butler", "Marketing Designer", "San Francisco", "5384", "2009/12/09", "$85,675"]
];
render() {
let data =this.state.data;
console.log(data);
return (
<div className="App">
<div className="tbl-mr">
<a href="/home" className="button1" > <u>Halaman Utama</u></a>
<a href="/tabel" className="button1" > <u>Tabel</u></a>
<a href="/datatable" className="button1" > <u>Data Tabel</u></a>
<a href="/karyawan" className="button1" > <u>Karyawan</u></a>
<a href="#" onClick={this.logout} className="logout">Logout</a>
<CobaData data={this.dataSet} />
</div>
</div>
);
}
但是我需要的是** this.state.data **以调用mySQL数据 上面的代码仅读取dataSet中的local / 但我想调用mySQL中的所有数据
<CobaData data={this.state.data} />
答案 0 :(得分:0)
您可以通过以下链接获得完整的图片