当前位置:网站首页>4. Basic type and reference type?
4. Basic type and reference type?
2022-07-24 18:21:00 【yingxingyf】
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<input type="button" value=" test " onclick ="testf()" />
</body>
</html>
<script type="text/javascript">
function testf(){
// Value type ; The value is stored in the memory space corresponding to the variable
/*
var m = 20;
var n = m;
n = 50;
document.write("m="+m);//20
*/
// Reference type : The address is stored in the memory space corresponding to the variable ( quote )
var arr1=[12,23,34,45];// Equivalent to var arr1 = new Array(12,23,34,45);
var arr2 = arr1;
arr2[2] = 100;
document.write("arr1[2]="+arr1[2]);
}
</script>

边栏推荐
- Mac database management software Navicat premium essentials mac
- Alibaba 1688 keyword search product API usage display
- Read zepto source code touch module
- Baidu touch.js
- 0623~ holiday self study
- Wechat applet
- Common methods of array (2)
- Single cell code analysis - gynecological cancer single cell transcriptome and chromatin accessibility analysis 1
- BOM understanding in odoo
- 6126. Design food scoring system
猜你喜欢

手写博客平台~第二天

安装JumpServer

6126. 设计食物评分系统

Install jumpserver

Mozilla foundation released 2022 Internet health report: AI will contribute 15.7 trillion yuan to the global economy in 2030, and the investment in AI in the United States last year was nearly three t

Three ways of redis cluster

How to render millions of 2D objects smoothly with webgpu?

Section 7 Data Dictionary: hash followed by Daewoo redis ------- directory post

Go language interface and type

Inheritance and Derive
随机推荐
0630~ professional quality course
Alibaba /166 obtains the API instructions for all products in the store
颜色的13 个必备方法!
6126. Design food scoring system
How to solve the problem that yaml in idea is unrecognized or red?
0613 ~ self study
球面上绘制圆matlab仿真
【obs】依赖库: x264 vs 构建
去不图床容量兑换
Wechat applet
Three ways of redis cluster
开窗函数(1)-部门工资前三员工
Still reading logs on the command line? Use kibana, visual log analysis yyds!
数组对象方法 常用遍历方法&高阶函数
Emerging potential of interactive virtual reality technology in drug discovery
Model saving and loading of sklearn
Icml2022 Best Paper Award: learning protein reverse folding from millions of predicted structures
字符串常用方法(2)
ES6 cycle filter value
Three ways of redis cluster