当前位置:网站首页>jsz中的join()
jsz中的join()
2022-06-25 04:00:00 【刘家奕_】
join()
-该方法可以将数组转换为一个字符串
-该方法不会对原数组产生影响,而是将转换后的字符串作为结果返回
-在join()中可以指定一个字符串作为参数,这个字符串将会成为数组中元素的连接符
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<script>
var arr = ["孙悟空", "猪八戒", "沙和尚"];
var result = arr.join("----");
console.log(result);
</script>
</body>
</html>

边栏推荐
- UCLA | generative pre training for black box optimization
- Leetcode points to the leetcode road of offering II 091 house painting [dynamic planning] heroding
- Acmstreamopen return value problem
- Trigger for gbase 8s
- 【无标题】
- CTF_ Web: Advanced questions of attack and defense world expert zone WP (9-14)
- 记录小知识点
- GBASE 8S内存管理
- Laravel document sorting 11. System architecture
- Communication problems in parent and child components of uniapp
猜你喜欢

A detailed summary of four handshakes (or four waves) over TCP connections

Error 1062 is reported during MySQL insertion, but I do not have this field.

Laravel document sorting 4. Controller

Value transfer between parent and child components of wechat applet

论文笔记: 多标签学习 ESMC (没看懂, 还没写出来, 暂时放这里占个位置)

UCLA | generative pre training for black box optimization

CTF_ Web: Advanced questions of attack and defense world expert zone WP (1-4)

EasyRecovery15非常好用的电脑数据恢复软件

微信小程序父子组件之间传值

什么是存储引擎以及MySQL常见的三种数据库存储引擎
随机推荐
Gbase 8s parallel operation problem scenario description
SQL injection details
js中的concat()
Summary of various problems encountered by cocos2d-x
GBASE 8s存儲過程語法結構
OBS Browser+浏览器的基本使用
GBase 8s 锁的分类
GbASE 8s中的Blob 页(Blobspace page)
【无标题】
关于TCP连接三次握手的详细总结
Laravel document sorting 1. Installation and Preliminary Configuration
讲座记录《多种空间大地测量技术的数据处理方法和应用》
Sourcetree pulls the code and prompts to fill in authentic, but the configuration cannot change the user
GBASE 8s 索引R树
Trigger for gbase 8s
GBASE 8s中DELIMIDENT环境变量的使用
BSC smart contract dividend mainstream currency | including marketing wallet | deflation | reflow | dividend free token | available for direct deployment
【esp32学习之路6——flash加密】
Communication problems in parent and child components of uniapp
Easyrecovery15 very easy to use computer data recovery software