### **以下为接口设置:** ### **1、选中该字符云组件,在操作界面右侧,点击“数据”,可设置接口**。 ![](https://img.kancloud.cn/57/82/5782fd617c83be6a1ade8b84f5e1ecda_345x388.png) ### **2、配置静态API** * 数据类型:选择“静态数据”; * 数据值:点击“编辑”进行修改; * 数据格式: ``` [ { "name": "三星", "value": "1234" }, { "name": "小米", "value": "1234" }, { "name": "华为", "value": "1234" }, { "name": "oppo", "value": "1234" }, { "name": "抖音", "value": "1234" }, { "name": "快手", "value": "1234" }, { "name": "淘宝", "value": "1234" }, { "name": "百度", "value": "1234" }, { "name": "京东", "value": "1234" }, { "name": "天猫", "value": "1234" }, { "name": "字符1", "value": "1234" }, { "name": "字符1", "value": "1234" } ] ``` ![](https://img.kancloud.cn/46/7c/467c6cd0dd453fb2738b013f65102b81_699x419.png) ### **3、配置动态API** * 数据类型:选择“静态数据”; * 数据值:点击“编辑”进行修改; * 数据格式: ``` {"data":[ { "name": "三星", "value": "1234" }, { "name": "小米", "value": "1234" }, { "name": "华为", "value": "1234" }, { "name": "oppo", "value": "1234" }, { "name": "抖音", "value": "1234" }, { "name": "快手", "value": "1234" }, { "name": "淘宝", "value": "1234" }, { "name": "百度", "value": "1234" }, { "name": "京东", "value": "1234" }, { "name": "天猫", "value": "1234" }, { "name": "字符1", "value": "1234" }, { "name": "字符1", "value": "1234" } ]} ``` * 刷新时间:这个参数主要针对动态数据设置的,完成数据的实时更新;如果你想设置成5秒刷新一次,可以将刷新时间设置成“5000”; ![](https://img.kancloud.cn/52/11/5211bccbb71ba735de397d6a840a0d38_705x630.png)