首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

form表单method=“post”交付为什么路径action还出现在地址栏中

2012-09-28 
form表单method“post”提交为什么路径action还出现在地址栏中我的form表单是这样写的为什么加上了target属

form表单method=“post”提交为什么路径action还出现在地址栏中
我的form表单是这样写的为什么加上了target属性action就出现在了地址栏中?
<form id="login" method="post" action="loginQtAction!login.action" target="_parent">

[解决办法]
target="_parent" 是新打开一个页面了,post不起作用。
如果用 target="_self",post会起作用,我觉得如此,可以去测试看看结果
[解决办法]
主页面使用iframe,然后给它命名一个name属性,form的taiget的值协商iframe的name属性名称就可以,这样就可以提交表单之后刷新了

热点排行