js怎么输出一个数组?
比如一个数组vartarget=[""="a-01",""="a-02",""="a-03",""="a-04",""="a-05"];如上数组怎么输出...
比如一个数组
var target=[""="a-01",""="a-02",""="a-03",""="a-04",""="a-05"];
如上数组怎么输出 展开
var target=[""="a-01",""="a-02",""="a-03",""="a-04",""="a-05"];
如上数组怎么输出 展开
1个回答
推荐于2016-10-23
展开全部
定义数组出错,见图
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>menu</title>
<style type="text/css">
</style>
<script type="text/javascript">
var target = [
'"" = "a-01"', '"" = "a-02"', '"" = "a-03"', '"" = "a-04"', '"" = "a-05"'
];
console.log(target)
</script>
</head>
<body>
</body>
</html>
正确了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询