联系官方销售客服
1835022288
028-61286886
模板标签里面
自动任务配置检测 添加代码到公共页头部文件
{if !is_file(WRITEPATH.'config/run_lock.php')}
<script>
$(function () {
$.ajax({type: "GET",dataType:"json", url: "/index.php?s=api&c=run&is_ajax=1&num=5",
success: function(json) {
},
error: function(HttpRequest, ajaxOptions, thrownError) {
}
});
});
</script>
{/if}
报错
ParseError
syntax error, unexpected '}', expecting end of file
/cache/template/template_pc_AnJi_home_common_top.html.cache.php at line 61
54 },
55 error: function (HttpRequest, ajaxOptions, thrownError) {
56 }
57 });
58
59 });
60 </script>
61 <?php } ?>
URL地址相对路径:/index.php
模板文件相对路径:公共页面头部文件