博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
小写大写转换_小写到大写转换器JavaScript工具| 网络应用项目
阅读量:2528 次
发布时间:2019-05-11

本文共 2624 字,大约阅读时间需要 8 分钟。

小写大写转换

Hi! At times, beginners always find it hard getting the application of the theory they learn in programming or a particular language.

嗨! 有时,初学者总是很​​难在编程或特定语言中应用他们学到的理论。

In this article, we'll see another application of JavaScript. We'll see the use/application JavaScript objects and properties/methods to build a web app that converts lowercase to uppercase letters.

在本文中,我们将看到JavaScript的另一个应用程序。 我们将看到使用/应用程序JavaScript对象和属性/方法来构建将小写字母转换为大写字母Web应用程序

The application will get user input via a text box or text area and will output the result in the same text box.

该应用程序将通过文本框或文本区域获取用户输入,并将结果输出到同一文本框中。

Seems like magic right!!!

好像是魔术吧!

You may think applying the knowledge is the same as when you were getting lectures on it! But that's not true.

您可能会认为,应用知识与获得知识一样! 但这不是事实。

The application of every concept in programming needs extra tips and knowledge to be successful.

每个概念在编程中的应用都需要额外的技巧和知识才能成功。

First of all, let's begin by revising the syntax of JavaScript string object methods...

首先,让我们从修改JavaScript字符串对象方法的语法开始...

JavaScript string methods are used to perform specific tasks on string objects or strings (some).

JavaScript字符串方法用于对字符串对象或字符串(某些)执行特定的任务。

For example:

例如:

var x = hello.toUpperCase();

Assigns the text hello to variable x in uppercase.

将文本hello分配给大写的变量x 。

Now, let's move to our project.

现在,让我们转到我们的项目。

Open a text editor and type the code below.

打开文本编辑器,然后输入以下代码。

Save the file with the name uppercase.html

保存文件,命名为uppercase.html

NB: You can still use your own desired CSS style!

注意:您仍然可以使用自己想要CSS样式!

In the case of this project, we'll get the input in the text box/area using its element and then apply the JavaScript string object method to it.

对于本项目,我们将使用其元素在文本框/区域中获取输入,然后对其应用JavaScript字符串对象方法。

Code:

码:

    
comic.browserling.com logo

Coders

Good coders code, great coders reuse.

  

In this project, I used my own CSS styles. You can feel free to use any you desire.

在这个项目中,我使用了自己CSS样式。 您可以随意使用任何您想要的东西。

Open the html file and test out your web application.

打开html文件并测试您的Web应用程序。

Output Image:

输出图像:

lowercase to uppercase conversion tool in JS
lowercase to uppercase conversion tool in JS

Thanks for coding with me. Your comments are most welcome.

感谢您与我一起编码。 非常欢迎您发表评论。

翻译自:

小写大写转换

转载地址:http://skxzd.baihongyu.com/

你可能感兴趣的文章
20155339 《信息安全系统设计基础》课程总结
查看>>
javascript 正则表达式学习
查看>>
ASCII代码 简介
查看>>
SSL协议之数据加密过程详解
查看>>
Mybatis <if>标签
查看>>
Hibernate HQL详解
查看>>
IOS学习之斯坦福大学IOS开发课程笔记(第六课)
查看>>
详解C# 匿名对象(匿名类型)、var、动态类型 dynamic
查看>>
centos7 开放端口
查看>>
迷宫实现
查看>>
如何使用Transact-SQL进行事务处理[示例]
查看>>
选择JSF不选Struts的十大理由
查看>>
01-编写CMS注意事项
查看>>
SQL 事务
查看>>
element的form表单中如何一行显示多el-form-item标签
查看>>
SQL Server两种分页的存储过程介绍
查看>>
09 audio和vedio标签
查看>>
【HDU 6299】Balanced Sequence
查看>>
【】minimum
查看>>
【CS Round #46 (Div. 1.5) B】Letters Deque
查看>>