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
<? | |
$mm=$_POST['mm']; | |
$url='http://202.194.48.11:9004/loginAction.do'; | |
$post="zjh=$zjh&mm=$mm"; | |
$cookie_file=tempnam('./tmp','cookie'); | |
$ch = curl_init($url) ; | |
curl_setopt($ch,CURLOPT_HEADER,0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1) ; | |
curl_setopt($ch, CURLOPT_POST,1) ; | |
curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie_file); |
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 compare () { | |
var arrList = Array.prototype.slice.call(arguments); | |
var arrCount = arrList.length - 1; | |
var allNumber = []; | |
var bucket = []; | |
var newArr = []; | |
// 先给数组进行去重, 然后连接成一个数组 | |
for (var i = 0, len = arrList.length; i < len; i ++) { | |
var tmp = []; | |
for (var j = 0, len2 = arrList[i].length; j < len2; j ++) { |
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 hoooo(dd) { | |
this.dd = dd; | |
this.M = {}; | |
var _this = this; | |
$(this.M).on('eventName',function() { | |
console.log(_this.dd) | |
}) | |
} | |
hoooo.prototype.trigger = function () { | |
$(this.M).trigger.apply($(this.M), arguments); |
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
(module | |
(func $add (param $a i32 ) (param $b i32) (result i32) | |
get_local $a | |
get_local $b | |
i32.add) | |
(export "add" (func $add)) | |
) |
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 jsonp({url, callbackName, callback, timeout = 30000}) { | |
return new Promise((resolve, reject)=>{ | |
const urlObj = new URL(url); | |
const random = ~~(Math.random() * 1000) + new Date().getTime(); | |
const funcName = '____JSONP____' + random; | |
window[funcName] = callback; |