iam36
2015-04-08 16:00:56 +08:00
动作:
<a href="javascript:query('prevWeek');" class="prev">上一周</a>
JS:
function query(weekflag) {
var channelId = document.getElementById("channelId");
var dateStr = document.getElementById("dateStr");
if (dateStr.value == null || dateStr.value == '') {
alert("请选择时间.");
return false;
}
if (channelId.value == null || channelId.value == '') {
alert("请选择类型.");
return false;
}
var channelName = channelId.options[channelId.selectedIndex].text;
document.getElementById("channelName").value=channelName;
form1.action = "/app/get.action?weekflag="+weekflag;
form1.submit();
不会写网页 ,连调试都不会,道理上应该是确定weekflag的内容,再和"/app/get.action?weekflag="串起来提交即可。
确实没搞定