変数にハードコードされた値を割り当ててデータを取得するjqueryを作成しました。jqueryを使用したファイルのJSONデータ
私の要件は、jsonファイルから同じデータを取得することです。誰でもこのコードを使って手伝ってください。
$(function() {
var jsonCalendarTreeStructure = [
{
text: 'Years',
nodes: [
{
text: '2013',
type: 'Y',
nodes: [
{
text: '13-Q1',
type: 'Q',
},
{
text: '13-01',
type: 'M',
},
{
text: '13-02',
},
{
text: '13-03',
}
]
}
]
}
];
$('#Dyanmic').treeview({
data: jsonCalendarTreeStructure,
});
}
文法修正、コードフォーマットさ – Blauharley