applet image processing

Since the upload code of the applet cannot check 2M, the processing method is as follows:

1. Make sure that the local image added to the applet code package does not exceed 2M, in order to refer to the local image;

2. If there are many icons, you can consider using iconfont font icons. Since the applet does not support http and requests cross-domain, go to this platform https://transfonter.org/ , convert the font file into base64 format, and then link

3. Put the picture directly on the server, and then use the absolute path to reference

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325120968&siteId=291194637