如何创建“动态”数组 [英] How to create 'dynamic' array

查看:60
本文介绍了如何创建“动态”数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建和调整数组。

例如:



i可以定义一个数组,每次用户刷新时网站,阵列弹出

,数据有所不同。



i希望建立一个用户可以添加数据的网站到那个数组。

如果他要刷新页面,这个信息就会被保存。

并且没有刷新回原来创建的那个。



我尝试了什么:



在youTube上寻找一些例子

i want to create and adjustable array.
for example:

i can define an array, and each time the user refreshes the website, the array pops up
with the difined in data.

i want to make a website that the user would be able to add data to that array.
and if he would refresh the page, this info would be saved.
and not refreshed back to the original one created.

What I have tried:

looked for some examples on youTube

推荐答案

请参阅 JavaScript阵列 [ ^ ]其中解释了如何扩展数组。
See JavaScript Arrays[^] where it explains how to extend an array.


这篇关于如何创建“动态”数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆