( ! ) Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\www\up\jQuery\jquery_03.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\jquery_03.php:0

( ! ) Warning: include(http://pub.houheaven.com/Nav02/Nav_deep2.htm): failed to open stream: no suitable wrapper could be found in D:\www\up\jQuery\jquery_03.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\jquery_03.php:0

( ! ) Warning: include(): Failed opening 'http://pub.houheaven.com/Nav02/Nav_deep2.htm' for inclusion (include_path='.;C:\php\pear') in D:\www\up\jQuery\jquery_03.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\jquery_03.php:0

获取和设置属性

$(content).attr(name);

$(content).attr(properties);

$(content).attr(key,value);

$(content).attr(key,fn);

属性说明
name获取属性值:指定属性名来获取其属性值
properties设定属性值:书写方式为 { 属性名:"值",属性名:"值" … },可以设置多个属性。
(最后不能以逗号结尾,否则 IE 会出现 Javascript 错误)
key,value设置属性值:key为属性名,value为属性值,两者都必须用双引号火单引号括起来
key,fn设置属性值:key为属性名,fn为可指定函数,函数的返回值作为属性值

删除属性

$(content).removeAttr(name)


获取与设置表单属性值(value)

获取:$(input).val();

设置:$(input).val(value)

val()方法来获取和设置input标签的value值,如果为select标签,则获取的结果为数组。


显示框架
显示框架
显示框架
显示框架