ie8和ie8核心的浏览器不支持,其他浏览器可以。,望各位大虾帮帮忙!
代码是这样的:function clusterSend()
{
var phone = $("#phone").html();
var CustomerName=$("#CustomerName").html();
var DisaccountNum=$("#DisaccountNum").html();
var arr = new Array;
arr[0] = $("#CustomerName").html();
arr[1] = "您好!您的优惠券编码是";
arr[2] = $("#DisaccountNum").html();
arr[3] = ",凭此编码购买可享受相应优惠;) 详情请登陆 www.phnix.cn芬尼电器";
var content = arr.join("");
jQuery.ajax({
type: "get",
url: " http://GATEWAY.IEMS.NET.CN/GsmsHttp?from=4006699898&to="+phone+"&content="+content+"",
success: function(msg)
{
alert('申请成功,折扣券稍后会发到您手机!');
window.location.href=" http://www.phnix.cn/index.html";
}
//complete:function(){location.href ="index.html"}
});
}
代码是这样的:function clusterSend()
{
var phone = $("#phone").html();
var CustomerName=$("#CustomerName").html();
var DisaccountNum=$("#DisaccountNum").html();
var arr = new Array;
arr[0] = $("#CustomerName").html();
arr[1] = "您好!您的优惠券编码是";
arr[2] = $("#DisaccountNum").html();
arr[3] = ",凭此编码购买可享受相应优惠;) 详情请登陆 www.phnix.cn芬尼电器";
var content = arr.join("");
jQuery.ajax({
type: "get",
url: " http://GATEWAY.IEMS.NET.CN/GsmsHttp?from=4006699898&to="+phone+"&content="+content+"",
success: function(msg)
{
alert('申请成功,折扣券稍后会发到您手机!');
window.location.href=" http://www.phnix.cn/index.html";
}
//complete:function(){location.href ="index.html"}
});
}
解决方案 »
- jquery tree如何获取节点下所有儿子节点,而不是全部节点
- 为何JS编码无错,IE8浏览器无反映?新人请教
- js控制导航菜单点击后的css效果
- 如何用Jquery区别textbox 和button分别施加不同css呢?
- javascript设置div的title
- 各路javascript高手请进,javascript对象问题?
- 有没有选择时间(只有时分)或者时间上下调整的控件,好像没见到在web上实现的
- 日期替换的怪问题!
- 在电子邮件中打开链接的问题
- think PHP5 控制器中获取表单file文件获取不到
- 如何获取浏览器可见区域高document.body.clientWidth属性不好用
- 高分求真解,为什么有些网站主页脱机后仍能上
{
var s = document.createElement('script');
s.type='text/javascript';
s.charset=encoding; //'gb2312';
s.src = src;
var tags =document.getElementsByTagName('head');
if(typeof(fun)=='function'){
if( document.all ){
s.onreadystatechange = function(){
if(/(complete|loaded)/.test(this.readyState)){
fun(); s.onreadystatechange = null; s.parentNode.removeChild(s);
}};
}else{
s.onload = function(){ fun(); s.onload = null; s.parentNode.removeChild(s); };
}
}
tags[0].appendChild(s);
};
这个方法应该可行,其中的方法跟图片加载有点类似,loaded,complete(ie),load(非IE)