当前位置:网站首页>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>

边栏推荐
- Lecture record: new application of inertial navigation - inertial measurement
- 5 key indicators of SEO: ranking + traffic + session + length of stay + bounce rate
- 讲座记录《多种空间大地测量技术的数据处理方法和应用》
- Read lsd-slam: large scale direct monolithic slam
- Comparison of towe/ JIRA / tapd / Zen collaboration platforms
- MySQL order by
- Gbase 8s overall architecture
- Communication problems in parent and child components of uniapp
- GBASE 8s 索引B+树
- GBASE 8s存儲過程語法結構
猜你喜欢

navicat可不可以直接操作安卓数据库SQLite

CTF_ Web: Learn flask template injection (SSTI) from 0

【esp32学习之路6——flash加密】

Value transfer between parent and child components of wechat applet

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

Intel 13th generation core showed its true colors for the first time: 68mb cache improved significantly

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

论文阅读《LSD-SLAM: Large-Scale Direct Monocular SLAM》

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

CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep
随机推荐
GBASE 8s的包
Gbase 8s memory management
Basic introduction of gbase 8s blocking technology
LeetCode 劍指Offer II 091 粉刷房子[動態規劃] HERODING的LeetCode之路
A detailed summary of TCP connection triple handshake
Anaconda installation +tensorflow installation +keras installation +numpy installation (including image and version information compatibility issues)
Gbase 8s parallel operation problem scenario description
Easyrecovery15 very easy to use computer data recovery software
Laravel document sorting 10. Request life cycle
Should I use on or where for the left join
Laravel document sorting 1. Installation and Preliminary Configuration
navicat可不可以直接操作安卓数据库SQLite
CTF_ Variable coverage in web:php
讲座记录《多种空间大地测量技术的数据处理方法和应用》
微信小程序父子组件之间传值
什么是持久化?redis 持久化中的RDB和AOF是什么?
Introduction to the isolation level of gbase 8s
515. 在每个树行中找最大值 / 剑指 Offer II 095. 最长公共子序列
马斯克发布人形机器人,AI对马斯克为什么意义重大?
LabVIEW开发气体调节器