zoukankan
html css js c++ java
JS实现大小写转换
Code
1
<
html
>
2
<
head
>
test
<
/
head>
3
<
script language
=
"
javascript
"
>
4
function
daxie()
5
{
6
document.getElementById(
"
tx1
"
).value
=
document.getElementById(
"
tx1
"
).value.toUpperCase();
7
}
8
function
xiaoxie()
9
{
10
document.getElementById(
"
tx1
"
).value
=
document.getElementById(
"
tx1
"
).value.toLowerCase();
11
}
12
<
/
script>
13
<
body
>
14
<
input type
=
"
text
"
id
=
"
tx1
"
>
15
<
input type
=
"
button
"
value
=
"
转换成大写
"
onclick
=
"
daxie()
"
>
16
<
input type
=
"
button
"
value
=
"
转换成小写
"
onclick
=
"
xiaoxie()
"
>
17
<
/
body>
18
<
/
html>
查看全文
相关阅读:
linux driver ------ 交叉工具链(cross toolchain)
Qt ------ 截图、获取鼠标指定的RGB值
Qt ------ QWidget 自定义子类使用信号与槽(Q_OBJECT)后 stylesheet 失效
Qt error ------ incomplete type 'QApplication' used in nested name specifier
Qt ------ Q_UNUSED
SpringCloud 组件Eureka参数配置项详解
过滤器(Filter)与拦截器(Interceptor)的区别
事务隔离级别
事务四大特性
get与post的区别
原文地址:https://www.cnblogs.com/guanjie20/p/1453811.html
最新文章
RadASM中文乱码问题解决方法!!
在Virtual Box虚拟机中安装MS DOS!
使用Visual Studio 2013 调试 MASM 汇编程序!
(英文版)使用Visual Studio 2015 编写 MASM 汇编程序!
想直接用Windows API开发程序,你真的应该知道这些!
[C语言](一)第一个Windows 32 API的窗口程序
(C) Windows 32 API程序设计目录
(Delphi) Windows 32 API程序设计目录
Windows 32 程序设计
bochs配置文件解释说明
热门文章
Java Web 之javabeans
Unity3D 之 console面板的停靠
Linux 内核编译问题
Unity 之 插件下载
Unity 之 自定义消息提示框
Unity 之 场景切换
Unity 之 rawimage 与image 的区别
unity 之 no cameras rendering
编译linux内核以及添加系统调用的全过程
VMware ------ 共享文件夹
Copyright © 2011-2022 走看看