Site Notice
hello, world
Short url
From Project-EPB Commons
<html>
<pre id="url"></pre> <input placeholder="https://wjghj.cn" value="https://wjghj.cn" id="request"></input><br/> <button onclick="start()">生成</button>
<script> function start() {
$.ajax({ url: 'https://common.wjghj.cn/api.php', data: { action: 'shortenurl', url: $('#request').val() }, type: 'post', dataType: 'jsonp', success: function(data) { $('#url').html(data.shortenurl.shorturl); } });
} </script> </html>