一个页面中两个form分别显示的问题 if(){ form1}else if(){ form2} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 url 中 ?action=form1 或者 ?action=form2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title></head><body><form id="form1" name="form1" method="post" action="" style="display:none"> form1</form><form id="form2" name="form2" method="post" action="" style="display:none"> form2</form><script language="javascript">function get(s) { var uri = window.location.search; var re = new RegExp(s + '=([^&]*)'); return re.test(uri) ? uri.match(re)[1] : null; }document.getElementById(get('action')).style.display = '';</script></body></html> if(){ form1}else if(){ form2}有没有实际例子给我看看 action值如何传过来的呀?能不能简单的写一下呢? 请在服务端决定该输出哪个form。---基本问题请问身边的同事或查看参考资料 关于JS 对象的问题 如何限制textarea长度 这段代码如何输出结果呢?谢谢 javascript的自下而上的循环滚动文字如何改成自右而左滚动? 高手该如何解决第二次提交之后不重新加载页面的问题 JQMobi $.jsonP请求Json数据问题, 求解呀。。 50分求助:如可写一个字符串——在线等待 实现UpLoad的难题,突破IE的限制,改变file字段的VALUE属性的值。高分求教! <tr>在客户端脚本里怎么调用! 用sql语句实现可以吗? 一个关于文本框的问题(急) 请教如何得到表格的行号和列号
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head><body>
<form id="form1" name="form1" method="post" action="" style="display:none">
form1
</form>
<form id="form2" name="form2" method="post" action="" style="display:none">
form2
</form>
<script language="javascript">
function get(s) {
var uri = window.location.search;
var re = new RegExp(s + '=([^&]*)');
return re.test(uri) ? uri.match(re)[1] : null;
}document.getElementById(get('action')).style.display = '';
</script>
</body>
</html>
form1
}else if(){
form2
}
有没有实际例子给我看看
---
基本问题请问身边的同事或查看参考资料