首页 > Web开发 > 详细

Ajax

时间:2015-08-25 23:32:41      阅读:410      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>无标题文档</title>
</head>

<body>
    表单:数据的提交
        action : 数据提交的地址,默认是当前页面
        method : 数据提交的方式,默认是get方式
            1.get
                把数据名称和数据值用=连接,如果有多个的话,那么他会把多个数据组合用&进行连接,然后把数据放到url?后面传到指定页面
            2.post
        enctype : 提交的数据格式,默认application/x-www-form-urlencoded
    <form action="1.get.php" enctype="application/x-www-form-urlencoded">
        <input type="text" name="username" />
        <input type="text" name="age" />
        <input type="submit" value="提交" />
    </form>
</body>
</html>

Ajax

原文:http://www.cnblogs.com/jiechen/p/4758896.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!