QQ扫一扫联系
https://latexeasy.com/en/demo/sdk
<iframe id="liveEditor" frameborder="0" style="width:100%;height:400px;border:0;outline:none;" src="https://latexeasy.com/editor"></iframe><script src="https://latexeasy.com/vendor/LatexEasyEditor/editor/sdk.js"></script><script> var letexeasy = new window.LatexEasy(document.getElementById('liveEditor')); letexeasy.on('ready', function () { console.log('LatexEasy.ready'); letexeasy.call('set.latex', { latex: 'x=\\frac {-b\\pm \\sqrt \{\{b\}^\{2\}-4ac\}\} {2a}' }); }); letexeasy.init();</script>
letexeasy.call('set.latex', { latex: 'x=\\frac {-b\\pm \\sqrt \{\{b\}^\{2\}-4ac\}\} {2a}'});
letexeasy.call('get.latex', {}, function(data){ console.log(data);});
letexeasy.call('get.svg', {}, function(data){ console.log(data);});
latexeasy.on('ready', function(){ console.log('latex init finished');});