小编use*_*794的帖子

从远程服务器中提取icanhaz模板

icanhaz文档以此为例说明如何从远程服务器中提取ich模板.

$.getJSON('/myserver/templates.json', function (templates) {
    $.each(templates, function (template) {
         ich.addTemplate(template.name, template.template);
    });
});
Run Code Online (Sandbox Code Playgroud)

但是,文档并没有真正告诉您远程服务器上的文件必须是什么样子.有人有主意吗?

html ajax jquery icanhaz.js

5
推荐指数
1
解决办法
328
查看次数

标签 统计

ajax ×1

html ×1

icanhaz.js ×1

jquery ×1