加载中…

读取单页面数据

```javascript WXAPI.cmsPage('key') ``` 即可读取后台发布的单页面数据: ![](https://dcdn.it120.cc/yuque/0/2021/png/572726/1638438282985-f2de4c69-d346-43c1-b8f5-be2122b1a458.png) 如上图的编号,就是接口需要传入的 `key` 返回示例: ```json { "code": 0, "data": { "extJson": {}, "info": { "content": "

1

", "dateAdd": "2021-10-09 14:46:09", "id": 9065, "key": "1", "title": "1", "type": 0, "userId": 2 } }, "msg": "success" } ``` + content 文本编辑器的内容 + title 标题 + extJson 后台设置的扩展属性