interface{}读取非常不方便,将其转换成map类型后就可以读取了
#res是个interface{}
res.(map[string]interface{})
参考:http://stackoverflow.com/questions/25214036/getting-invalid-operation-mymaptitle-type-interface-does-not-support-in
uzi
域的翻译加载触发过早。这通常表示插件或主题中的某些代码运行过早。翻译应在 init
操作或之后加载。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 6.7.0 版本添加的。) in /www/wwwroot/ixvps.com/wp-includes/functions.php on line 6121