本文共 1882 字,大约阅读时间需要 6 分钟。
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.
在本文中,我们将看到JavaScript的另一个应用程序。
A little web app tool that converts data measurement from one unit to another.
一款小的Web应用程序工具,可将数据测量从一个单位转换为另一个单位 。
For example, from kilobytes to megabytes.
例如,从千字节到兆字节 。
We'll make use of 3 forms and 2 buttons.
我们将使用3种形式和2个按钮。
Understanding how projects are built helps to expand our minds and become more creative.
了解项目的构建方式有助于扩大我们的思维并更具创造力。
In this project, I used a very simple CSS style, but feel free if you have something better.
在这个项目中,我使用了非常简单CSS样式,但是如果您有更好的东西,请放心使用。
You can further modify it to something better as you wish.
您可以根据需要进一步对其进行修改,使其更好。
Open a text editor and type the code below.
打开文本编辑器,然后输入以下代码。
Save the file with the name data tool.html
使用名称数据tool.html保存文件
NB: You can still use your desired CSS style!
注意:您仍然可以使用所需CSS样式!
Code:
码:
Open the html file and test out your web application
打开html文件并测试您的Web应用程序
Thanks for coding with me. Your comments are most welcome.
感谢您与我一起编码。 非常欢迎您发表评论。
翻译自:
转载地址:http://pvvzd.baihongyu.com/