This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getSearchText(){ | |
var btn = true | |
$('.searchContent').off('input').on('input',function(){ | |
if(timer){ | |
clearTimeout(timer) | |
} | |
if(!btn){ | |
return; | |
} | |
btn = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |