求助,代码如下,模板文件Login.tpl中,
<script>
function create_code(){
document.getElementByIdx_x("code").src = 'create_code.php?'+Math.random()*10000;
}
</script>一直报错:“Fatal error: Smarty error: [in Login.tpl line 93]: syntax error: unrecognized tag: document.getElementByIdx_x("code").src = 'create_code.php?'+Math.random()*10000; (Smarty_Compiler.class.php, line 446) in I:\masterPHP\vtigercrm\Smarty\libs\Smarty.class.php on line 1095
”
求各位大神指导!!!
<script>
function create_code(){
document.getElementByIdx_x("code").src = 'create_code.php?'+Math.random()*10000;
}
</script>一直报错:“Fatal error: Smarty error: [in Login.tpl line 93]: syntax error: unrecognized tag: document.getElementByIdx_x("code").src = 'create_code.php?'+Math.random()*10000; (Smarty_Compiler.class.php, line 446) in I:\masterPHP\vtigercrm\Smarty\libs\Smarty.class.php on line 1095
”
求各位大神指导!!!
例:
{literal}
<script>
function create_code(){
document.getElementByIdx_x("code").src = 'create_code.php?'+Math.random()*10000;
}
</script>
{/literal}
不知道你的 有没有