ITeye博客

js中(property和attribute,argument与parameter)的区别

fourfire · 2007-09-18 15:08 · web · Markdown

1 property和attribute
attribute  静态标签

xml 代码

 

  1. <a href=''>

property 动态访问

js 代码

 

  1. <script>
  2. a.href=''
  3. </script>

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

评论(1)

  1. #1 楼 · dohkoos · 2008-02-22 21:17

    parameter是形参 argument是实参

评论功能维护中,当前仅展示历史评论。