---
title: "js中(property和attribute，argument与parameter)的区别"
author: "fourfire"
date: "2007-09-18T15:08:30Z"
tags: []
slug: "js-property-attribute-argument-parameter"
draft: false
lastmod: "2007-09-18T15:08:30Z"
id: 125010
url: "https://fourfire.iteye.com/blog/125010"
---

1 property和attribute  
attribute  静态标签

xml 代码

 

1. &lt;a href=''&gt;

property 动态访问

js 代码

 

1. &lt;script&gt;
2. a.href=''
3. &lt;/script&gt;

有些attribute和property是相同的，有些不是，attribute应该是大写形式表现，因为不区分大小写，所以容易混淆  
innerhtml就是一个property，而不是attribute  
2 argument与parameter  
argument形参  
parameter实参，带对象索引（指针）

[]()