惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
MyScale Blog
MyScale Blog
博客园 - 【当耐特】
I
InfoQ
腾讯CDC
aimingoo的专栏
aimingoo的专栏
L
LangChain Blog
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Vercel News
Vercel News
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
D
Docker
MongoDB | Blog
MongoDB | Blog
量子位
博客园_首页

噜啦 - 表单

表单:selet - 噜啦 表单:selet - 噜啦 表单: textarea button - 噜啦 表单: textarea button - 噜啦 input 标签 - 噜啦 input 标签 - 噜啦 表单相关属性 - 噜啦 表单 - 噜啦 表单 - 噜啦
表单相关属性 - 噜啦
博主: 噜啦 · 2019-07-10 · via 噜啦 - 表单

 DEMO

1b549955684d39ff37ef7795efc19ac6.png

CODE

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <!-- form相关属性
             action 表单提交的地址
             method 表单发送数据的方式 默认使用get方式
                get 把数据放在浏览器地址栏发送给后台 可以在浏览器地址栏看到发送内容
                post 隐式提交数据,不可见
                
            name:通用的属性 可以加在任何标签上
            
            什么时候用post?什么时候用get
                涉及到数据库修改的用post,查询用get
         -->
        <form action="#" method="post">
            
            用户名:<input type="text" name="username"/> </br>
            密码:<input type="password" name="pwd"/></br>
            <input type="submit" value="登录" />
            
        </form>
    </body>
</html>

赞赏作者

如果觉得我的文章对你有用,请随意赞赏