文件名称:serialize-form:无需javascript框架将HTML表单序列化为字符串
文件大小:3KB
文件格式:ZIP
更新时间:2024-07-24 08:28:00
JavaScript
从移植到 CoffeeScript,并修复了错误。 序列化 HTML 表单 下载 1836B (100%) 1147B (62%) 1009B (54%) 用法 < form action ="" method =" get " > < input type =" text " name =" fullname " value =" James Bond " /> < input type =" text " name =" email " value =" email@example.com " /> </ form > var form = document . getElementsByTagName ( 'form' ) [ 0 ] ; var serialized = serialize ( form ) ; // fullname=James Bond&
【文件预览】:
serialize-form-master
----serialize.js.coffee(1KB)
----serialize.js(2KB)
----serialize.packed.js(1009B)
----README.md(1KB)
----serialize.min.js(1KB)