Asp.net bootstrap-table使用javascript从json数据绑定但是在bootstraptable上获取错误不是一个函数 [英] Asp.net bootstrap-table bind from json data using javascript but getting error on bootstraptable is not a function
本文介绍了Asp.net bootstrap-table使用javascript从json数据绑定但是在bootstraptable上获取错误不是一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
-1
向下投票
收藏
我创建了一个页面并为引导表导入了相应的脚本。当我调用该方法来绑定json数据时,它在javascript中给出了一个错误,即bootstrapTable不是一个函数。任何人都可以帮我这个。
我尝试过:
我尝试更改订单脚本
-1
down vote
favorite
I created the one page and imported the respective scripts for the bootstrap table. When I call the method to bind json data, it gives me an error in javascript that bootstrapTable is not a function. Can any one help me with this.
What I have tried:
I trying with changes the order ot scripts
<div class="container">
<table id="table"><thead><tr><th>Item ID</th><th>Item Name</th><th>Item Price</th></tr></thead></table>
</div>
function GetCustData(params) {
var mydata = '[{"id": 0,"name": "test0","price": "$0"}]';
$('#table').bootstrapTable({ data: mydata });
}
推荐答案
0}]';
0"}]';
(' #table')。bootstrapTable({data:mydata});
}
('#table').bootstrapTable({ data: mydata }); }
确保 bootstrap-table.min.js [ ^ ]文件在您的页面中提到
make sure bootstrap-table.min.js[^] file is refered in your page
这篇关于Asp.net bootstrap-table使用javascript从json数据绑定但是在bootstraptable上获取错误不是一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文