input标签的hidden属性的应用及作用

来源:互联网 发布:matlab table转为矩阵 编辑:程序博客网 时间:2024/05/16 18:17

定义:传输关于客户端/服务器交互的状态信息。

Transmits state information about client/server interaction.

解释:

此元素在页面中不显示,在提交表单时发送 value 属性的值。

此元素在 Internet Explorer 3.0 及以上版本的 HTML 和脚本中可用。此元素不需要关闭标签。

这种输入类型用户无法控制。

 

This input type presents no control to the user, but sends the value of the value property with the submitted form.

The INPUT type=hidden element is available in HTML

This element is not rendered.

This element does not require a closing tag.

注:INPUT type=hidden 元素不会显示在文档里,所以用户也无法操作该元素。该元素通常用来传输一些客户端到服务器的状态信息。

 

——隐藏域,在页面上不显示,但是可以将参数传递给下一页,也可以被本页的javascript函数获取。

 

隐含域主要用于提交表单的时候传递动态参数。

 

0 0
原创粉丝点击