这里是发件人文件的代码,如果我想将文本字段值(sms_name)从一个html发送到另一个html,现在你怎么修改代码才能发送三个测试
value(sms_name,sms_number,sms_text);
html file code (sender):
var sms_txt=get_the_value('messages');
var sms_number=document.getElementById('recepient-number').value;
var sms_name= document.getElementById('recepient-name').value;
// plz modify this line down to send more than one text field vlaue
window.location.href = 'activity_log.html?sms_name=' + sms_name ;
答案 0 :(得分:0)
window.location.href = 'activity_log.html?sms_name=' + sms_name + '&sms_number=' + sms_number + '&sms_txt=' + sms_txt;
答案 1 :(得分:0)
这是你要找的吗?
window.location.href = 'activity_log.html?sms_name=' + sms_name +'&sms_number'+sms_number+'&sms_txt'+sms_txt;
答案 2 :(得分:0)
尝试这样做:
window.location.href ='activity_log.html?sms_name ='+ sms_name +'& sms_txt ='+ sms_txt +'& sms_number ='+ sms_number';