如何输出:
ID: 0001
Name: Mike
Birthday: London 21/05/1989
Hobby: Reading
Run Code Online (Sandbox Code Playgroud)
我的下面的代码是未定义的,我希望数组城市+日期在生日时在一起.
我的代码不是,请查看下面的代码:
var input = [
["0001", "Mike", "London", "21/05/1989", "Reading"],
["0002", "Sara", "Manchester", "10/10/1992", "Swimming"],
["0003", "John", "Kansas", "25/12/1965", "Cooking"],
["0004", "Dave", "Nevada", "6/4/1970", "going to gym"]
];
var data = ["ID: ", "Name: ", "Birthday: ", "Hobby: "];
for(var i = 0 ; i <= input.length ; i++){
for(var j = 0 ; j <= input.length ; j++){
for(var i = 0 ; i <= data.length; i++){
console.log(data[i] …Run Code Online (Sandbox Code Playgroud)还有人问这个问题吗?如果是,请给我阅读这个问题的链接,如果不是,该怎么做?我想更改每个用户切换语言的标题和描述,我该怎么做?我确实喜欢得到一些帮助,我是。初学者:D
我有gallery.vue
我在这里使用 nuxt js
并使用基于 nuxt-i18n 的 vue-i18n
<template lang="html">
<div class="">
<p> {{ $t('post') }}</p>
</div>
</template>
<script>
export default {
head () {
return {
tittle: // how to change tittle here for the spesific languange
}
}
}
</script>
<style lang="css">
</style>
Run Code Online (Sandbox Code Playgroud)
我希望结果就像英语中的标题是 Gallery 一样,当用户切换意大利语时,标题将是 Galleria
如何循环"字符串"并通过旧式技术在没有内置函数和es6的情况下在它们之间添加一些字符
the input: "446697"
output: "44669-7"
Run Code Online (Sandbox Code Playgroud)
添加dashbewtwen odd数字
javascript ×3
arrays ×2
for-loop ×2
loops ×2
nested-loops ×1
nuxt.js ×1
routes ×1
vue.js ×1
while-loop ×1