Site Notice
hello, world
Difference between revisions of "Short url"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要 (第1部分)) |
([InPageEdit] 没有编辑摘要 (第1部分)) |
||
Line 11: | Line 11: | ||
console.info('https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val()); | console.info('https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val()); | ||
var ajaxRequest = $.ajax({ | var ajaxRequest = $.ajax({ | ||
− | url: 'https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val() | + | url: 'https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val(), |
+ | async: false | ||
}); | }); | ||
console.info(ajaxRequest.responseText); | console.info(ajaxRequest.responseText); |
Revision as of 02:03, 22 November 2019
此页收集一些短网址生成api
腾讯
- url.cn
<html> <div id="tencent"> <pre class="urlFinal">https://url.cn/</pre> <input placeholder="https://wjghj.cn" value="https://wjghj.cn" class="urlRequest"/> <button onclick="getTencent()">生成</button> <script> function getTencent() {
console.info('https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val()); var ajaxRequest = $.ajax({ url: 'https://doc.wjghj.cn/surl/?url='+$('#tencent .urlRequest').val(), async: false }); console.info(ajaxRequest.responseText);
} </script> </html>