我有一个输出问题,我似乎无法追踪问题,这里是代码:
示例.js
var m_names = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
var cmonth = myDate.getMonth();
var cdate = myDate.getDate();
var temp1 = m_names[cmonth];
var tempo = escape(temp1 + " " + cdate);
document.cookie=fcookie"=" + tempo;
输出.php
<?php echo implode($_COOKIE)?>
它显示
713qnihjmdt7mdq8eejvlcd1q1
但我想显示存储在 tempo 变量中的日期,
我尝试直接显示速度变量,它显示了正确的输出,
有什么建议么?我想我需要在 php 端添加一个代码。