Skip to content

Instantly share code, notes, and snippets.

Vare Quan varequan

Block or report user

Report or block varequan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@varequan
varequan / gist:6f3dc27b9025ae022a19786b0f214658
Created Aug 21, 2019
jquery实时搜索限制ajax发送频率
View gist:6f3dc27b9025ae022a19786b0f214658
function getSearchText(){
var btn = true
$('.searchContent').off('input').on('input',function(){
if(timer){
clearTimeout(timer)
}
if(!btn){
return;
}
btn = false;
View test.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Js复制代码</title>
</head>
<body>
<p>
<input type="button" name="anniu1" onClick='copyToClipBoard()' value="复制专题名称和url地址,传给QQ/MSN上的好友">
<script language="javascript">
@varequan
varequan / exam.py
Created Mar 3, 2018
刑侦科推理试题程序作答
View exam.py
#coding=utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
i=0
option=['o','a','b','c','d']
for a in xrange(1,5):
for b in xrange(1,5):
View wdf.py
#!/usr/bin/env python
# coding=utf-8
from __future__ import print_function
import os
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
You can’t perform that action at this time.