我正在用ajax將資料從資料庫發送到頁面上,我想用jstree顯示這些資料。有很多檔案夾和我發送的資料數量一樣多,但它沒有顯示它們的名字。我怎樣才能用jstree正確地顯示資料呢?
uj5u.com熱心網友回復:
我的ajax代碼的網址,你錯過了檔案型別。 *********************************your ajax
。$.ajax({
type: "GET"。
url: "/Home/anaKategori",
success: function (data) {
.
.
.
<iframe name="sif1" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
*****************************,嘗試在URL中給出檔案的擴展名
。 。$.ajax({
url : 'test.php', //like this。
型別。'post'。
資料: {'data':'1}。
.
.
.
<iframe name="sif2" sandbox="allow-forms allow-modals allow-scripts" class="snippet-box-edit snippet-box-result" frameborder="0"></iframe>
希望你通過這個修正得到了結果,謝謝你
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/328666.html
標籤:
上一篇:OpenCV讀取不可見的影像
下一篇:與具有泛型的類的串列的型別不匹配

