分步表单如何实现 html_HTML表单入门的分步指南

分步表单如何实现 html

by Abhishek Jakhar

通过阿比舍克·贾卡(Abhishek Jakhar)

HTML表单入门的分步指南 (A step-by-step guide to getting started with HTML forms)

总览 (Overview)

HTML forms are required when you want to collect some data from the person who visits your website. For example, when you register/login for applications like Uber, Netflix, or Facebook, you enter information like Name, Email, and Password through HTML forms.

当您想从访问您的网站的人那里收集一些数据时,需要HTML表单。 例如,当您注册/登录Uber,Netflix或Facebook之类的应用程序时,您会通过HTML 表单输入诸如NameEmailPassword之类的信息。

Now we will learn all the required elements for creating a form.

现在,我们将学习创建表单的所有必需元素。

NOTE: I have already added the Styling using CSS and so my elements will look different, but they will work in exactly the same way.

注意:我已经使用CSS添加了样式,因此我的元素看起来会有所不同,但是它们的工作方式完全相同。

If you want to make your elements look like mine then, you can find my CSS file in the links given below:

如果要使您的元素看起来像我的元素,则可以在下面给出的链接中找到我CSS文件:

Custom CSS: https://gist.github.com/abhishekjakhar/493d920a219ed9d88f1846cd31de7751

自定义CSS: https : //gist.github.com/abhishekjakhar/493d920a219ed9d88f1846cd31de7751

Normalize CSS:

标准化CSS:

Normalize CSS:https://gist.github.com/abhishekjakhar/3a6c25fa61a293b6a56d28f98497808b

标准化CSS: https : //gist.github.com/abhishekjakhar/3a6c25fa61a293b6a56d28f98497808b

表单元素 (Form Element)

This is the first element which we will learn. This element wraps all the other elements that go inside of our form. This is the form element.

这是我们将要学习的第一个要素。 该元素包装了表单中所有其他元素。 这是表单元素。

Our form won’t submit the data anywhere because it is not connected to a server. To connect our form to a server and process our data, we can use any server-side language like Node, Python, Ruby, or PHP. The part of processing the data involves two important attributes that are attached to the form element. Let’s take a look at those attributes.

我们的表单不会在任何地方提交数据,因为它没有连接到服务器。 要将表单连接到服务器并处理数据,我们可以使用任何服务器端语言,例如Node,Python,Ruby或PHP。 处理数据的部分涉及到附加到form元素的两个重要属性。 让我们看一下这些属性。

Attributes:

属性:

  1. action: The action attribute is the web address (URL) of a program that processes the information submitted by our form.

    action: action属性是处理我们表单提交的信息的程序的网址(URL)。

  2. method: It is the HTTP method that the browser uses to submit the form, the possible values are POST and GET.

    method:这是浏览器用来提交表单的HTTP方法 ,可能的值为POSTGET。

  • POST — Data from the body of the form is sent to the server.

    POST —表单主体中的数据发送到服务器。

  • GET — Data is sent inside of the URL and parameters are separated with a question mark.

    GET-数据在URL内发送,参数之间用问号分隔。

Note: You cannot have forms nested inside another form. That means you cannot have a <form> element inside another<form> element.

注意: 表单不能嵌套在另一个表单中 。 这意味着您不能在另一个<form>元素内包含<form>元素。

输入元素 (Input Element)

The input element is the most commonly used form element. It is used to make a text field where the user can type some information for example email, password etc.

输入元素是最常用的表单元素。 它用于创建一个文本字段 ,用户可以在其中输入一些信息 ,例如电子邮件密码等。

Let’s make a text field where the user can type in their name.

让我们创建一个文本字段,用户可以在其中输入他们的姓名。

Note: The input element is a self-closing tag, so there’s no need to type a closing tag to match the opening tag.

注意: input元素是一个自动关闭标签,因此无需键入关闭标签以匹配开始标签。

I have added three attributes in the above input tag. Let’s take a look at each one in detail.

我在上面的输入标签中添加了三个属性。 让我们详细看一下每个。

type

类型

The type attribute indicates what kind of input we want. If we give a value of text to the type attribute, than what we mean here is that the value which we are entering into the input field is of type text. There are many possible values for this particular attribute. Some possible values are email, tel for telephone and password etc.

type属性指示我们想要哪种输入。 如果我们给type属性提供一个text值,那么在这里我们要输入的值就是text类型。 此特定属性有许多可能的值。 一些可能的值是电子邮件,电话的tel和密码等。

Example: When you login into any of your accounts (Amazon/Netflix), you need to enter two things: email and password. So in this particular case the input element is used. The type attribute is given with the value of email and password respectively.

示例:登录到任何帐户(Amazon / Netflix)时,您需要输入两件事: emailpassword 。 因此,在这种特殊情况下,将使用输入元素。 type属性分别带有emailpassword的值。

id

ID

The ID attribute is not mandatory, but it’s a good idea to add one. In some cases, this is helpful for targeting elements with CSS/JavaScript. The ID attribute is added so that we can associate labels to specific form controls.

ID属性不是必需的,但最好添加一个。 在某些情况下,这对于使用CSS / JavaScript定位元素很有帮助。 添加了ID属性,以便我们可以将标签关联到特定的表单控件

name

名称

The name attribute is necessary. When a form is submitted to the server side code, the server can understand the form data and process the values appropriately.

名称属性是必需的。 将表单提交到服务器端代码后,服务器可以理解表单数据并适当地处理值。

placeholder

占位符

It is a short hint which is displayed in the input field before the user enters a value. As the user starts typing in the input field the placeholder disappears.

这是一个简短的提示,在用户输入值之前显示在输入字段中。 用户开始在输入字段中输入时,占位符消失。

Let’s see what a few other basic input elements look like.

让我们看看其他一些基本输入元素的外观。

Note: Using different values for the type attribute will produce different results. For example you can make input be of type email, text, or password etc. All of them show slightly different behaviour, which you will see below.

注意:type属性使用不同的值将产生不同的结果。 例如,您可以使输入的类型为电子邮件,文本或密码等。所有这些都显示出稍有不同的行为,您将在下面看到。

Multiple Input Elements (Text, Email, Password)

多个输入元素(文本,电子邮件,密码)

Multiple Input Element (Text, Email, Password)

多个输入元素(文本,电子邮件,密码)

Textarea元素 (Textarea Element)

Sometimes a single line of text is not enough and a simple input element won’t work. For example, some websites have a contact form for people to type their queries or messages. In these cases, it’s best to use the textarea element.

有时单行文本是不够的,简单的输入元素将无法工作。 例如,某些网站具有供人们键入其查询或消息的联系表。 在这种情况下,最好使用textarea元素。

The <textarea> is not a self-closing tag, so we need to type both the opening and the closing tag. (<textarea></textarea>)

<textar ea>不是自动关闭标签,因此我们需要同时输入开始标签和结束标签。 (<textarea> </ textarea>)

Attributes:

属性:

  • id: Same as mentioned above in <input/> element.

    id:与上面<input />元素中提到的相同。

  • name: Same as mentioned above in <input/> element.

    名称:与上面<input />元素中提到的相同。

  • cols: Specifies the visible width of a text area.

    cols:指定文本区域的可见宽度。

  • rows: Specifies the visible number of lines in a text area.

    行:指定文本区域中可见的行数。

You can see that the textarea allows us to type in multiple lines. A textarea is resizable by the user, you can see in the above illustration that I am resizing the textarea.

您会看到textarea允许我们键入多行。 用户可以调整文本区域的大小,在上图中可以看到我正在调整文本区域的大小。

Note: In most browsers the textarea element is resizable.

注意:在大多数浏览器中, textarea元素是可调整大小的。

按钮元素 (Button Element)

The button element is one of the most important form elements. Without a button you cannot submit any form to the server for processing.

button元素是最重要的表单元素之一。 没有按钮,您将无法将任何表单提交到服务器进行处理。

The button element accepts the attribute called type. This attribute accepts three values submit, reset and button.

button元素接受称为type的属性 该属性接受三个值SubmitResetButton

Attributes:

属性:

  • type=”reset”: It will clear all the form data when it’s clicked.

    type =“ reset”:单击后将清除 所有表单数据

  • type=”button”: It does not have any default behavior and it’s mostly used with JavaScript to program it for custom behavior.

    type =“ button”:它没有任何默认行为,并且通常与JavaScript结合使用以对其进行自定义行为编程。

  • type=”submit”: The default behavior of the submit type is, as the name implies, submit the form and send all the data over to the server.

    type =“ submit”:顾名思义,submit 类型的默认行为是提交表单并将所有数据发送到服务器。

标签元素 (Label Element)

Right now it’s impossible for the user to tell which form control does what. There’s no way to know where you will be entering the email and where you will be entering the password. The form looks very incomplete and messy.

现在,用户无法知道哪个表单控件执行什么操作。 无法知道您将在哪里输入电子邮件以及您将在哪里输入密码。 表格看起来非常不完整和混乱。

We can label each one of our forms controls using the label element.

我们可以使用label元素来标记我们每个窗体控件。

The most used attribute with a label is for.

标签的最常用属性是for。

Attributes:

属性:

  • for: The for attribute associates the label with a particular form element. The way it matches is by ID. As you can see in the above example the value of the ID attribute given to the input element is email. The value of the for attribute given to the label element is also email, so both of them are associated with each other.

    for: for属性将标签与特定表单元素相关联。 匹配的方式是通过ID 。 如您在上面的示例中所见,给输入元素提供的ID属性的email。 赋予label元素的for属性的值也是email,因此它们彼此关联。

Note: When we click on the label, we automatically get the focus to the input field which is associated with the label. This is a default behaviour.

注意:单击标签时,我们会自动将焦点移到与标签关联的输入字段。 这是默认行为。

Now our form looks very good ?.

现在我们的表格看起来非常好吗?

选择菜单 (Select Menus)

Sometimes, when you’re creating a form, you don’t want the user to be able to type in the text. Rather, you might want them to pick from some preset options that you provide.

有时,当您创建表单时,您不希望用户能够输入文本。 相反,您可能希望他们从您提供的一些预设选项中进行选择

Anytime you have a list of options that’s longer than, say, four or five things, it’s best to go with the select menu because it saves space.

任何时候您拥有的选项列表都比四,五种东西长,最好选择选择菜单,因为它可以节省空间。

Let’s say that our form is targeted for students who are going to seek admission at a university. We want to allow students to select from a predefined list of university programs.

假设我们的表格是针对打算在大学录取的学生的。 我们希望允许学生从大学课程的预定义列表中进行选择。

The select menu element is made using opening and closing <select> tag.

选择菜单元素是使用打开和关闭<sele ct>标签制成的。

<select> — The select element renders a drop-down menu that contains selectable options. The select element won’t do anything, by itself. This form element actually needs additional elements inside of it, exactly like <ul> elements needs <li> elements. The elements we put inside of select element are called option elements.

<sele ct>-选择元素显示一个包含可选选项的下拉菜单 选择元素不会做任何事情,本身。 这种形式的元素实际上需要在它的内部的附加元件,恰好LIKË<UL> ELE 换货的需求<LI>元素。 我们把选择e 字元素内的元素被称为选项元素。

Attributes:

属性:

  • name: Same as mentioned above in <input/> element.

    名称:与上面<input />元素中提到的相同。

<option> — The option element represents one of the choices that a user can choose in a select menu. The &lt;option> element uses an attribute called value.

<opti on>-选项元素表示用户可以在选择菜单中选择的选项之一 &l t; option>元素使用 属性值。

Attributes:

属性:

  • value: When you submit a form to server-side code, each form element has an associated value for text inputs and text areas. That value is whatever the user types into the field. However, since we’re creating these predefined options, we need to specify what the value should look like when it’s submitted. So, we use the value attribute to specify the values to predefined options.

    值:当您向服务器端代码提交表单时,每个表单元素对于文本输入和文本区域都有一个关联的值。 该值是用户在字段中键入的任何值。 但是,由于我们正在创建这些预定义的选项,因此我们需要指定该值在提交时的外观。 因此,我们使用value属性为预定义选项指定值。

Now we have Select Courses label with the select menu which we have just created. Now, we can also organize our list into logical groups with the <optgroup> element.

现在,我们有了刚刚创建的带有选择菜单的“选择课程”标签。 现在,我们还可以使用<optgro up>元素将列表组织成逻辑组。

Attributes:

属性:

  • label: The name of the group of options. In the example given below our list of options has been divided into two groups with the label of Engineering and Management.

    标签:选项组的名称。 在下面给出的示例中,我们的选项列表已分为两组,标签为Engineering and Management。

In the example given below

在下面的示例中

单选按钮 (Radio Buttons)

Select menus are great if you have lots of options. If you have something like 5 or fewer options, it’s better to use radio buttons.

如果您有很多选择,那么选择菜单会很棒。 如果您有5种或更少的选项,则最好使用单选按钮。

The difference between Select Menu and Radio Button is that radio buttons show you all the options at once. Like the select menu the user can only pick from one of them.

选择菜单和单选按钮之间的区别在于单选按钮可一次显示所有选项。 像选择菜单一样,用户只能从其中之一中进行选择。

Attributes:

属性:

  • name: Same as mentioned above in <input/> element.

    名称:与上面<input />元素中提到的相同。

  • value: Since we’re creating these predefined options, we need to specify what the value should look like when it’s submitted. So, we use the value attribute to specify the values to predefined options.

    值:由于我们正在创建这些预定义的选项,因此我们需要指定该值在提交时的外观。 因此,我们使用value属性为预定义选项指定值。

Note: If you select one option and then you try to select another option, you’ll see that it deselects the previous option. The way that it knows to do that is because we have the name attribute exactly same. So it knows that these two radio buttons are part of the same group.

注意: 如果选择一个选项,然后尝试选择另一个选项,则会看到它取消选择了上一个选项。 它知道这样做的方式是因为我们拥有完全相同的name属性。 因此,它知道这两个单选按钮是同一组的一部分。

Note: Name should be the same if we want radio buttons to be a part of the same radio button group.

注意:如果我们希望单选按钮成为同一个单选按钮组的一部分,则名称应相同。

选框 (Checkboxes)

Sometimes you might have a group of predefined options. You want the user to be able to select multiple options and not just one of them. That’s where checkboxes are useful.

有时您可能有一组预定义的选项。 您希望用户能够选择多个选项,而不仅仅是其中之一。 这就是复选框有用的地方。

Attributes:

属性:

  • name: Same as mentioned above in <input/> element.

    名称:与上面<input />元素中提到的相同。

  • value: Since we’re creating these predefined options, we need to specify what the value should look like when it’s submitted. So, we use the value attribute to specify the values to predefined options.

    值:由于我们正在创建这些预定义的选项,因此我们需要指定该值在提交时的外观。 因此,我们使用value属性为预定义选项指定值。

  • checked: By default, a checkbox input is unchecked. You can set the default state to checked by using the attribute called checked. Remember this is a boolean attribute.

    选中:默认情况下,未选中复选框输入。 您可以通过使用称为checked的属性将默认状态设置为checked 。 请记住,这是一个布尔属性。

<input type="checkbox" checked id="name" value="abhishek" name="user_name" />

In the example given below, I have used the label for each individual option. I have connected the checkbox and a label using the for attribute of label and id attribute of the checkbox.

在下面给出的示例中,我为每个选项使用了标签。 我已连接的复选框 ,并使用 复选框标签id属性的属性标签

Note: It can be hard to click a small checkbox. It is recommended to wrap a <label> element around the checkbox. If we click the label then also our checkbox gets checked or unchecked. I have not done it below, but you can do it to make the UX better.

注意: 很难单击一个小复选框。 建议在复选框周围包裹一个<label>元素。 如果单击标签,则我们的复选框也会被选中或未选中。 我下面没有做过,但是您可以做得更好,以达到UX更好的效果

复选框和单选按钮之间的区别 (Difference between Checkbox and Radio button)

  1. Checkbox can exist on its own, while radio buttons can only appear as a group (minimum of 2 radio buttons should be there).

    复选框可以存在于它自己的 ,而单选按钮只能出现作为一个 (2个的单选按钮最低也要在那里)。

  2. Selecting checkbox is optional but choosing one of the radio button is mandatory.

    选择复选框是可选的 ,但选择的单选按钮的一个是强制性的

完整表格 (The Complete Form)

We’ve learned about lots of HTML form elements and have covered the essentials.

我们已经了解了许多HTML表单元素,并涵盖了所有要点。

Don’t worry about memorizing everything. Almost no professional web developer can name every attribute or element. What’s more important than memorization is learning how to look up things in the documentation when you need them.

不必担心记住所有内容。 几乎没有专业的Web开发人员可以命名每个属性或元素。 比记忆更重要的是,学习如何在需要时在文档中查找内容。

You can try adding your own CSS to make this form look the way you want it to look.

您可以尝试添加自己CSS,以使此表单看起来像您想要的样子。

You can learn more about forms in the link given below

您可以在下面的链接中了解有关表格的更多信息

HTML formsThis module provides a series of articles that will help you master HTML forms. HTML forms are a very powerful tool for…developer.mozilla.org

HTML表单 此模块提供了一系列文章,可帮助您掌握HTML表单。 HTML表单对于... developer.mozilla.org 是一个非常强大的工具。

I hope you’ve found this post informative and helpful. I would love to hear your feedback!

希望您发现这篇文章对您有帮助。 我希望听到您的反馈!

Thank you for reading!

感谢您的阅读!

翻译自: https://www.freecodecamp.org/news/a-step-by-step-guide-to-getting-started-with-html-forms-7f77ae4522b5/

分步表单如何实现 html

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/393049.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

linux网络服务偶尔失效,判断linux下的网络服务是否正常启动

# 自动判断samba,http,named,dovecot,tomcat等服务是否正常启动##作者&#xff1a;胡昌文#时间&#xff1a;2008-09-28#MSN&#xff1a;[email]hucw_rhcehotmail.com[/email]###!/bin/shSAMBA1netstat -nutlp | grep :137 | grep smbdSAMBA2netstat -nutlp | grep :138 | grep …

leetcode809. 情感丰富的文字

有时候人们会用重复写一些字母来表示额外的感受&#xff0c;比如 “hello” -> “heeellooo”, “hi” -> “hiii”。我们将相邻字母都相同的一串字符定义为相同字母组&#xff0c;例如&#xff1a;“h”, “eee”, “ll”, “ooo”。 对于一个给定的字符串 S &#xff…

NeHe OpenGL教程 第三十课:碰撞检测

转自【翻译】NeHe OpenGL 教程 前言 声明&#xff0c;此 NeHe OpenGL教程系列文章由51博客yarin翻译&#xff08;2010-08-19&#xff09;&#xff0c;本博客为转载并稍加整理与修改。对NeHe的OpenGL管线教程的编写&#xff0c;以及yarn的翻译整理表示感谢。 NeHe OpenGL第三十课…

andorid手机电脑操作

之前一直使用androidscreencast在pc上对手机进行操作,好久都没用了,前些天再次用的时候,提演示样例如以下: 决定还是自己写一个吧,由于7月份要做一个小分享,打算讲一些android的东西,须要在电脑上显示手机这边的画面,提供一定的操作. 花了一点时间做好了,给大家截一个图,代码放…

struct.error: cannot convert argument to integer解决办法

更新Python包转载于:https://www.cnblogs.com/long5683/p/11086768.html

sphinx_Sphinx之谜:如何轻松地编写代码

sphinx为什么我在这里&#xff1f; (Why Am I Here?) You, the reader, are here because you wrote some awesome tool in Python, and you want to make it accessible and easy to use.读者之所以在这里&#xff0c;是因为您使用Python编写了一些很棒的工具&#xff0c;并且…

linux贪吃蛇c程序,Linux环境下C语言实现贪吃蛇游戏

Linux环境下C语言实现贪吃蛇游戏[liultest snake]$ more snake.c#include #include #include #include #include #define NUM 60struct direct //用来表示方向的{int cx;int cy;};typedef struct node //链表的结点{int cx;int cy;struct node *back;struct node *next;}node;v…

Java正则表达式的使用和详解(上)

1.匹配验证-验证Email是否正确 public static void main(String[] args) {// 要验证的字符串String str "servicexsoftlab.net";// 邮箱验证规则String regEx "[a-zA-Z_]{1,}[0-9]{0,}(([a-zA-z0-9]-*){1,}\\.){1,3}[a-zA-z\\-]{1,}";// 编译正则表达式P…

在组策略中使用脚本为域用户添加网络打印机

使用脚本为用户添加网络打印机 如果你想让培训部门的用户登录后就能添加网络打印机&#xff0c;就可以使用登录脚本来实现。其中DCServer是域控制&#xff0c;MarketPC1是市场部门的计算机&#xff0c;韩立辉用户是培训部门的用户。下面就验证使用组策略为培训部门的用户添加网…

leetcode257. 二叉树的所有路径(回溯算法)

给定一个二叉树&#xff0c;返回所有从根节点到叶子节点的路径。 说明: 叶子节点是指没有子节点的节点。 示例: 输入: 1 / 2 3 5 输出: [“1->2->5”, “1->3”] 解释: 所有根节点到叶子节点的路径为: 1->2->5, 1->3 代码 /*** Definition for a b…

英特尔神经计算棒_如何设置英特尔Movidius神经计算棒

英特尔神经计算棒by Rishal Hurbans由Rishal Hurbans 如何设置英特尔Movidius神经计算棒 (How to set up the Intel Movidius Neural Compute Stick) In 2017 I was approached by Intel to join their Innovator Programme. After a couple interviews I was inducted as an …

linux 脚本中的push,linux shell之pushd、popd和dirs的使用讲解

1 问题我们有时候需要保存多个路径&#xff0c;上下键切换不方便&#xff0c;用cd-只能到上个目录&#xff0c;我们可以用dirs和pushd和popd2 dirs、pushd、popddirs: 这个命令显示栈里面所有的路径&#xff0c;一定会包含当前路径,常用参数如下dirs -v 显示栈里面的所有路径和…

为什么我从 Git Flow 开发模式切换到了 Trunk Based 开发模式?

我已经使用 Git Flow 构建我的 Git 分支有几年了。但是&#xff0c;我遇到了 Git Flow 的一些问题&#xff0c;其中大部分来自长期存在的分支。解决这些问题的方案就是 Trunk Based Development。这是一个非常简单的技术&#xff0c;也是有效的持续交付的基础。在这篇文章中&am…

DedeCMS 提示信息! ----------dede_addonarticle

把数据保存到数据库附加表 dede_addonarticle 时出错&#xff0c;请把相关信息提交给DedeCms官方。Duplicate entry ’2532′ for key ‘PRIMARY’出现这种情况其实是你的主键是不可重复的&#xff0c;现在重复插入值为2532的主键了。可以去掉主键唯一&#xff0c;或是设成自增…

angular 模块构建_通过构建全栈应用程序学习Angular 6

angular 模块构建Angular 6 is out! The new features include better performance, new powerful CLI additions and a new way to inject services.Angular 6出来了&#xff01; 新功能包括更好的性能&#xff0c;新的功能强大的CLI附加功能以及注入服务的新方法。 This tut…

leetcode74. 搜索二维矩阵(二分查找)

编写一个高效的算法来判断 m x n 矩阵中&#xff0c;是否存在一个目标值。该矩阵具有如下特性&#xff1a; 每行中的整数从左到右按升序排列。 每行的第一个整数大于前一行的最后一个整数。 示例 1: 输入: matrix [ [1, 3, 5, 7], [10, 11, 16, 20], [23, 30, 34, 50] ] tar…

搭建基于.NetFrameWork的私有nuget服务端及打包项目发布上传

一、私有Nuget服务端搭建 1.创建一个.NetFramework web项目 2.在nuget管理中 安装 nuget.server包 3.安装完成后修改web.config里面的 apikey 和 packagesPath apikey&#xff1a;推送包到nuget服务端 packpage: 上传上来的包存放的服务器位置 4.发布web项目到IIS中&#xff0c…

linux 网络配置 阮一峰,Vim 配置入门

Vim 是最重要的编辑器之一&#xff0c;主要有下面几个优点。可以不使用鼠标&#xff0c;完全用键盘操作。系统资源占用小&#xff0c;打开大文件毫无压力。键盘命令变成肌肉记忆以后&#xff0c;操作速度极快。服务器默认都安装 Vi 或 Vim。Vim 的配置不太容易&#xff0c;它有…

spring 之 property-placeholder 分析

不难知道&#xff0c; property-placeholder 的解析是 PropertyPlaceholderBeanDefinitionParser 完成的&#xff0c; 但是 它仅仅是个parser &#xff0c; 它仅仅是读取了 location 等配置属性&#xff0c; 并没有完成真正的解析&#xff0c;及 注册。 <context:property-p…

leetcode面试题 10.02. 变位词组

编写一种方法&#xff0c;对字符串数组进行排序&#xff0c;将所有变位词组合在一起。变位词是指字母相同&#xff0c;但排列不同的字符串。 注意&#xff1a;本题相对原题稍作修改 示例: 输入: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”], 输出: [ [“ate”,…