Site Notice
hello, world
Difference between revisions of "Short url"
From Project-EPB Commons
([InPageEdit] 没有编辑摘要 (第1部分)) |
([InPageEdit] 没有编辑摘要 (历史版本:1106)) |
||
Line 4: | Line 4: | ||
* url.cn | * url.cn | ||
<html> | <html> | ||
+ | <div id="tencent"> | ||
<pre class="urlFinal">https://url.cn/</pre> | <pre class="urlFinal">https://url.cn/</pre> | ||
− | <input placeholder="https://wjghj.cn" value="https://wjghj.cn" class="urlRequest"/> <button onclick=" | + | <input placeholder="https://wjghj.cn" value="https://wjghj.cn" class="urlRequest"/> <button onclick="getTencent()">生成</button> |
<script> | <script> | ||
− | function | + | function getTencent() { |
− | + | if ($('#tc-s-url').length>0) { | |
− | $. | + | console.info('请求频次太快!'); |
− | function( | + | } |
− | + | $('body').append('<iframe id="tc-s-url" style="display:none" src="https://doc.wjghj.cn/surl?url='+$('#tencent .urlRequest').val()'+"/>'); | |
− | } | + | $('#tc-s-url').load(function(){ |
− | ); | + | var url = $(this).find('body').text(); |
+ | $('#tencent .urlFinal').html(tc-s-url); | ||
+ | setTimeout(function(){ | ||
+ | $(this).remove(); | ||
+ | },5000); | ||
+ | }); | ||
+ | |||
} | } | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 02:23, 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() {
if ($('#tc-s-url').length>0) { console.info('请求频次太快!'); } $('body').append('<iframe id="tc-s-url" style="display:none" src="https://doc.wjghj.cn/surl?url='+$('#tencent .urlRequest').val()'+"/>'); $('#tc-s-url').load(function(){ var url = $(this).find('body').text(); $('#tencent .urlFinal').html(tc-s-url); setTimeout(function(){ $(this).remove(); },5000); });
} </script> </html>