identifier starts immediately after numeric literal 这个错误,语法错误,数字后面不能直接跟字符串,不能编译通过。
将传的字符串参数加上引号
$mat.=' <div class="show_div" style="background-image: url('.$url.')"><i title="删除" class="fa fa-remove" onclick="delImg(\'' .$obj->img. '\',this);"></i></div>';
本文介绍了一个常见的编程错误“identifierstartsimmediatelyafternumericliteral”,详细解释了该错误的原因在于数字后紧跟字符串导致的语法问题,并提供了解决方案:确保字符串参数使用引号括起来。
4778

被折叠的 条评论
为什么被折叠?



