# cocoscreator_plugin_exceltojson **Repository Path**: codercmd/cocoscreator_plugin_exceltojson ## Basic Information - **Project Name**: cocoscreator_plugin_exceltojson - **Description**: cocoscreator插件excel传json文件 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-01-23 - **Last Updated**: 2023-05-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cocoscreator_plugin_exceltojson #### 介绍 cocoscreator插件excel传json文件 https://www.jianshu.com/p/e155ec4315d4 之前的文章有写过excel转json。无论是在cocos中读取excel,再转json。还是在外面转好后json,感觉都不是很方便。 每次策划更新下表,我都要跑到对应的文件夹转。 这次直接写插件,在编辑器中直接可以选择输入目录和输出目录。参考了unity导资源到laya的思路。 go的时候,会生成2个文件client_excel_config.json、server_excel_config.json 其中excel中,第二行第一列中,有cs,c表示客户端配置将包含该表,s服务端的配置将包含该表 ![e1.png](https://upload-images.jianshu.io/upload_images/7527152-e8e7a94287eec16b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![e2.png](https://upload-images.jianshu.io/upload_images/7527152-4265058710e6dc2c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![e3.png](https://upload-images.jianshu.io/upload_images/7527152-3db53bc5a8ef9ccd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![e4.png](https://upload-images.jianshu.io/upload_images/7527152-bd6bced923ee47d1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) ![e5.png](https://upload-images.jianshu.io/upload_images/7527152-056c2f2bd621f1de.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)