Site Notice
hello, world
Short url
From Project-EPB Commons
<html> <div id="tencent"> <pre id="url"></pre> <input placeholder="https://wjghj.cn" value="https://wjghj.cn" id="request"/> <button onclick="start()">生成</button> </div> <script> function start() {
new mw.Api().post({ action: 'shortenurl', url: $('#request').val() }).then(function(data){ console.info(data.shortenurl.shorturl); $('url').html(data.shortenurl.shorturl); });
} </script> </html>