comman.js
var str = '我是好人'
document.getElementById('div').innerHTML = str //div 是页面的 div的id
然后在html页面同一个位置都给一个相同id的div
页面再引用这个js即可!
帮助到你请采纳,谢谢!
github:https://github.com/pury/SPTools/tree/master/square2circle
参考:
https://www.jb51.net/article/169165.htm
https://stackoverflow.com/questions/29256640/how-to-use-graphicsmagick-in-node-js-to-crop-circle-picture-other-use-any-other