私は剣道モバイル アプリケーションを実行しており、json 呼び出しを使用して一覧表示するためにデータベースからデータをバインドしようとしています。次のコードを試してみましたが、うまくいきません。
私のコードはここにあります:
$(document).ready(function () {
var dataSource = new kendo.data.DataSource({
transport: {
read: {
type: "POST",
url: "WebService/listing.php",
contentType: 'application/json; charset=utf-8',
datatype: "json"
}
}
});
dataSource.bind("change", function () {
$("#content").html(kendo.render(template, dataSource.view()));
});
dataSource.read();
console.log(dataSource.view());
});