property是DOM中的属性,是JavaScript里的对象;
attribute是HTML标签上的特性,它的值只能够是字符串;
基于JavaScript分析property 和 attribute...注意,打印attribute属性不会直接得到对象的值,而是获取一个包含属性名和值的字符串,如:
console.log(in1.attibutes.sth); // 'sth="whatever"'...,
// @param raw, 元素是否一个非function对象
var access = jQuery.access = function( elems, fn, key, value, chainable...chainable为true
var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw...才会被保存在property的attributes属性中;
attribute会初始化property中的同名属性,但自定义的attribute不会出现在property中;
attribute的值都是字符串