采用的思想就是利用base64转码。
先放链接表示尊敬。https://github.com/dankogai/js-base64
<!-- 比方说这个SVG图片 -->
<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient x1="95.448%" y1="-855.053%" x2="2.873%" y2="-771.415%"
id="a">
<stop stop-color="#FE9A69" offset="0%" />
<stop stop-color="#FE9A69" offset="100%" />
</linearGradient>
<linearGradient x1="105.216%" y1="81.873%" x2="0%" y2="43.592%" id="b">
<stop stop-color="#FE9A69" offset="0%" />
<stop stop-color="#FE9A69" offset="100%" />
</linearGradient>
</defs>
<g fill-rule="nonzero" fill="none">
<g transform="translate(2 5)">
<path d="M8 44c5.023 1.182 12.2 1.921 20.17 1.921 7.97 0 15.147-.74 20.17-1.921-1.736 2.799-10.106 4.921-20.17 4.921C18.106 48.921 9.736 46.8 8 44z"
stroke=