Site Notice

hello, world

Difference between revisions of "Short url"

From Project-EPB Commons
([InPageEdit] 没有编辑摘要)
Line 11: Line 11:
 
     console.info('请求频次太快!');
 
     console.info('请求频次太快!');
 
   }
 
   }
   $('body').append('<iframe id="tc-s-url" src="https://blog.wjghj.cn/surl?url='+$('#tencent .urlRequest').val()+'"/>');
+
   $('body').append('<iframe id="tc-s-url" src="https://doc.wjghj.cn/surl?url='+$('#tencent .urlRequest').val()+'"/>');
 
   $('#tc-s-url').load(function(){
 
   $('#tc-s-url').load(function(){
 
     var url = $('#tc-s-url').contents().find('body').text();
 
     var url = $('#tc-s-url').contents().find('body').text();

Revision as of 02:28, 22 November 2019

腾讯

  • 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> </div> <script> function getTencent() {

 if ($('#tc-s-url').length>0) {
   console.info('请求频次太快!');
 }
 $('body').append('<iframe id="tc-s-url" src="https://doc.wjghj.cn/surl?url='+$('#tencent .urlRequest').val()+'"/>');
 $('#tc-s-url').load(function(){
   var url = $('#tc-s-url').contents().find('body').text();
   $('#tencent .urlFinal').html(url);
   setTimeout(function(){
     $('#tc-s-url').remove();
   },5000);
 });
 

} </script> </html>