当输入url地址后网页出现:Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "E:/wamp/www/cms/system/templates/index.html" on line 79 "$("#job").load("./system/templates/touch/test.php",{catid:3});" - Unexpected ":", expected one of: "}" , " "' in E:/wamp/www/cms/system/Smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 441这样的问题,通常是css和js的{}与smarty定界符冲突导致的。
解决办法有两个:
1.可以把 smarty 的定界符设成 <{ }>
复制代码 代码如下:
$tpl->left_delimiter = '<{';
$tpl->right_delimiter = '}>';
复制代码 代码如下:
<{literal}>
$ (
<span> </span>function () { alert ('培训课程')}
);
<{/literal}>
新闻热点
疑难解答
图片精选