smarty对数组进行json_encode

smarty对contorller返回的数组进行json_encode的时候,如数组的key不是连续的,则encode之后的变量有些是数组有些事对象。

猜你喜欢

转载自www.cnblogs.com/cfYu/p/9007219.html