Chrome plug-in extends the json format compression tool to facilitate json development. Installation Method:
Access through chrome
Https://chrome.google.com/extensions/detail/pjkoglpbigbjijmncfkcpkcpddnelgbm? Hl = zh-cn
[Json format/compression] Tool
Install in chrome :)
1. Create a new folder
2. Create a file named manifest. json
3. Open the manifest. json file, which can be understood as the configuration file :)
Includes the following content
The Code is as follows:
{
"Name": "My First Extension", // Extension name
"Version": "1.0", // version
"Description": "json format", // description
"Browser_action": {// operations on the browser
"Default_icon": "icon.png", // icon
"Popup": "json.html" // html file
}
}
4. Select a png image you like.
5. Create an html file (the core code is in it, and chrome extension is written in js)
Now the lib folder contains three files (icon.png, json.html, manifest. json );
6. Open chrome.exe (tool-> Extension Program (E)-> click developer mode and select an extension under development), and debug it.
7. Upload the extension you developed, https://chrome.google.com/extensions/, and select the left side (publish the extension ),
Upload your zip folder (libfolder to lib.zip, which must be a zip file. Make sure that the file containing the Chinese name cannot appear in the same directory. Otherwise, the upload will fail !)