我是一名Html5工程师 求大神帮忙翻译1段Jquery 翻译完支付宝转账100元
functiongetCookie(name){vararr,reg=newRegExp("(^|)"+name+"=([^;]*)(;|$)");if(arr=docu...
function getCookie(name){
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var pzisdo = false;
define(function(require) {
var pTime = ["2015/10/25 19:27","2015/10/25 21:10"];
var imgUrl = "http://static.talentsinger.smgtech.net/static/img/";
var pzv = [1,4000,5000];
var HOST = "http://talentsingergz.smgtech.net/api";
var iscc = true;
var isc=isr=false;
var ext = {
load:function(imglist){
var that = this;
this.imgLoadNum = imglist.length;
this.imgLoaded = 0;
for(var p in imglist){
var imgdom = new Image();
imgdom.src = imgUrl+imglist[p];
if (p<3){
$(imgdom).addClass("rpz");
this["pz"+p]=imgdom;
}
if (imgdom.complete){
this.loadSetp();
}else{
imgdom.onload = function(){
that.loadSetp();
}
}
}
},
loadSetp:function(){
this.imgLoaded++;
if (this.imgLoaded == this.imgLoadNum) this.init();
},
init:function(){
var that = this;
that.w = $(window).width();
that.h = $(window).height();
var nowTime = new Date().getTime()/100;
var startTime = new Date(pTime[0]).getTime()/100;
var endTime = new Date(pTime[1]).getTime()/100;
if (nowTime >=startTime && nowTime <= endTime){
that.$pzBo = $("#pzBo");
this.getOpenid(); 展开
var arr,reg=new RegExp("(^| )"+name+"=([^;]*)(;|$)");
if(arr=document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
}
function getQueryString(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null) return unescape(r[2]); return null;
}
var pzisdo = false;
define(function(require) {
var pTime = ["2015/10/25 19:27","2015/10/25 21:10"];
var imgUrl = "http://static.talentsinger.smgtech.net/static/img/";
var pzv = [1,4000,5000];
var HOST = "http://talentsingergz.smgtech.net/api";
var iscc = true;
var isc=isr=false;
var ext = {
load:function(imglist){
var that = this;
this.imgLoadNum = imglist.length;
this.imgLoaded = 0;
for(var p in imglist){
var imgdom = new Image();
imgdom.src = imgUrl+imglist[p];
if (p<3){
$(imgdom).addClass("rpz");
this["pz"+p]=imgdom;
}
if (imgdom.complete){
this.loadSetp();
}else{
imgdom.onload = function(){
that.loadSetp();
}
}
}
},
loadSetp:function(){
this.imgLoaded++;
if (this.imgLoaded == this.imgLoadNum) this.init();
},
init:function(){
var that = this;
that.w = $(window).width();
that.h = $(window).height();
var nowTime = new Date().getTime()/100;
var startTime = new Date(pTime[0]).getTime()/100;
var endTime = new Date(pTime[1]).getTime()/100;
if (nowTime >=startTime && nowTime <= endTime){
that.$pzBo = $("#pzBo");
this.getOpenid(); 展开
1个回答
摩杜云
2024-07-09 广告
2024-07-09 广告
判断一个发送邮件api公司的好坏,不只是看价格,还要考虑很多因素。建议可以多对比几个看看。您可以到摩杜云了解下。摩杜云成立于2019年,依托于公司多年技术沉淀和强大的云计算研发实力,面向全世界各个国家和地区、企业组织和个人开发者,提供全球的...
点击进入详情页
本回答由摩杜云提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询