ThinkPHP\Vendor\Smarty\libs\plugins 下面加函数

创建一个 a.php 里面添加smarty 注册函数就行了,就可以在模板中使用了!