zoukankan
html css js c++ java
两个textarea和并
http://bbs.blueidea.com/thread-2852450-1-1.html
第一行 第二行 第三行
内容是一 内容是二 内容是三
<
STYLE
>
TEXTAREA
{
}
{
FONT-SIZE
:
9pt
;
COLOR
:
#666666
;
FONT-FAMILY
:
Courier New
;
WIDTH
:
100
;
HEIGHT
:
50px
}
</
STYLE
>
<
script
>
var
$
=
document.getElementById;
function
equa1()
{
arr1
=
$(
'
b1
'
).value.match(
/
[^\s]+
/
g);
arr2
=
$(
'
b2
'
).value.match(
/
[^\s]+
/
g);
arr3
=
[];
for
(
var
i
=
0
;i
<
arr1.length;i
++
)
{
arr3.push(arr1[i]
+
arr2[i]);
}
$(
'
b3
'
).value
=
arr3.join(
"
\r\n
"
);
}
</
script
>
<
form
name
="form1"
><
center
>
<
TEXTAREA
id
=b1
>
第一行
第二行
第三行
</
TEXTAREA
><
BR
>
<
TEXTAREA
id
=b2
>
内容是一
内容是二
内容是三
</
TEXTAREA
><
BR
>
<
TEXTAREA
id
=b3
></
TEXTAREA
><
BR
>
<
input
type
="button"
value
="Calculate"
onClick
="equa1()"
>
</
form
>
查看全文
相关阅读:
A1047 Student List for Course [unordered_map]
.net 事务处理的三种方法
SQline安装
LeetCode 21 _ 合并两个有序链表
LeetCode 191 _ 位1的个数
LeetCode 268 _ 缺失数字
LeetCode 190 _ 位运算
LeetCode 136 _ 位运算
LeetCode 461 _ 位运算
LeetCode 125 _ 字符串
原文地址:https://www.cnblogs.com/CB/p/1184543.html
最新文章
HTML5多媒体
【聊天室1】初识InetAddress
【网络】Wireshark使用过滤器查看网络封包
【网络】HTTP各版本差异
简单Java后端的Cookie实现(时间戳)
IDEA运行我的第一个Servlet
Tomcat首次部署自己的web项目
【字符串】基于确定状态自动机(dfa)的kmp算法(算法第四版)
IDEA为main主函数添加args变量
【排序】冒泡排序、选择排序代码实例
热门文章
【数据库】搭建医疗知识图谱(Neo4j图数据库)
A1074 Reversing Linked List [链表高级倒置]
A1052 Linked List Sorting [链表排序]
A1032 Sharing [链表]
A1051 Pop Sequence [栈的应用]
A1022 Digital Library [map]
A1071 Speech Patterns [map]
A1100 Mars Numbers [map映射]
A1060 Are They Equal [string]
A1063 Set Similarity [set]
Copyright © 2011-2022 走看看