我正在尝试在 Ajax 请求中传递时区参数
像
alert(meeting_time);
alert(meeting_timezone);
$.ajax({
type: "GET",
url: "http://webfaction/UI/user/joinmeeting.php",
data: "user_names="+ user_names + "&image=" +file+"&duration="+ duration +"&user_name="+ user_name + "&meeting_id=" + meeting_id + "&moderator_password=" + moderator_password +"&attendee_password=" + attendee_password +
"&meeting_time=" + meeting_time + "&meeting_timezone=" + meeting_timezone + "&meeting_sms_no=" + meeting_sms_no + "&meeting_logout_url=" + meeting_logout_url +"&meeting_maxp=" + meeting_maxp +"&meeting_name=" + meeting_name ,
success: function(json){
alert(json);
$('#show_ajax').hide();
if(!json.error) location.reload(true);
},
现在我的问题是在ajax请求之前
alert(meeting_timezone); is printing `GMT +8.00`
但在 joinmeeting.php 页面上
$meeting_timezone = $_GET['meeting_timezone'];
print $meeting_timezone;
上面的打印语句正在打印值GMT 8.00
(+ 符号未在此处打印)
请告诉我如何解决这个问题?