Site Notice

hello, world

Short url

From Project-EPB Commons
Revision as of 03:12, 22 November 2019 by 机智的小鱼君 (talk | contribs) ([InPageEdit] 没有编辑摘要)

<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() {

 $.ajax({
   'url': 'https://common.wjghj.cn/api.php',
   'data': {
     'url': $('#tencent .urlRequest').val()
   },
   'type': 'post',
   'dataType': 'jsonp',
   'success': function(data) {
     $('#url').html(data.shortenurl.shorturl);
   }
 });

} </script> </html>