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
var oHead = document.getElementsByTagName('HEAD').item(0); | |
var oScript= document.createElement("script"); | |
oScript.type = "text/javascript"; | |
oScript.src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"; | |
oHead.appendChild( oScript); |
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 setCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
var expires = "expires="+d.toUTCString(); | |
document.cookie = cname + "=" + cvalue + "; " + expires; | |
} | |
setCookie('op','username=xiali&password=31C9CDA783173B7E17DFFD199F7B8F',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
SELECT | |
top (8) col | |
FROM | |
test | |
WHERE | |
EditDate BETWEEN DATEADD(m ,- 3, GETDATE()) | |
AND getdate() | |
ORDER BY | |
ID DESC; |
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
tempList.ForEach(x => x.Sort = (Array.ConvertAll<string,int>(x.DayOfStayDays.Split(','),delegate(string s){ return ConvertVal.GetValInt(s); }).Sum())); |
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
$(".artdeco-button").each(function(){this.click()}) |
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
//follow all user following openbilibili | |
window.location.href="https://lnkd.in/f2fTAWm"; | |
for(var i=0;i<document.getElementsByClassName("btn-sm").length;i++){if(document.getElementsByClassName("btn-sm")[i].value=="Follow"){document.getElementsByClassName("btn-sm")[i].click();console.log(document.getElementsByClassName("btn-sm")[i].title)} } |
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
//数字金额大写转换(可以处理整数,小数,负数) */ | |
var digitUppercase = function (n) { | |
var fraction = ['角', '分']; | |
var digit = [ | |
'零', '壹', '贰', '叁', '肆', | |
'伍', '陆', '柒', '捌', '玖' | |
]; | |
var unit = [ | |
['元', '万', '亿'], | |
['', '拾', '佰', '仟'] |
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
<input type="text" onkeyup="this.value=this.value.replace(/[^(\-?)\d.]/g,'')" class="inputJieFang" /> |
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
var replaceParamVal = function (paramName, replaceWith) { | |
var oUrl = this.location.href.toString(); | |
var re = eval('/(' + paramName + '=)([^&]*)/gi'); | |
var nUrl = oUrl.replace(re, paramName + '=' + replaceWith); | |
this.location = nUrl; | |
window.location.href = nUrl | |
} |
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
{ | |
"go.autocompleteUnimportedPackages": true, | |
"files.autoGuessEncoding": true, | |
"window.closeWhenEmpty": true, | |
"go.buildOnSave": "workspace", | |
"go.lintOnSave": "package", | |
"go.vetOnSave": "package", | |
"go.buildTags": "", | |
"go.buildFlags": [], | |
"go.lintFlags": [], |
OlderNewer