[bug]jquery无法操作网页title标题内容
今天编写一段代码,其中需要使用jquery对网页标题(title标签)内容在客户端进行变化。无法使用如下代码进行操作:
$("title").html("pkphp.com")
这段代码是无法将网页变体变化为pkphp.com的。另外也实验了以下方法,同样不能实现:
$("title").val("pkphp.com")
但是很奇怪的是可以使用如下代码将网页标题内容读取出来:
alert($("title").html());
这个应该是一个jquery的bug吧!
没办法只能使用javascript语句来实现这个功能:
document.title="pkphp.com";
jquery 查找title内容(1)
jquery title(60)
jquery的title(1)
无法Title(1)
php 获得网页title(1)
jquery 无法试用(1)
jquery title()(1)
title 内容(1)
jquery 操作title(3)
jquery $("TITLE")(2)
jquery title内容(2)
jquery 網頁標題(1)
title(1)
jquery网页标题(1)
title jquery(3)
Share in Google Reader
分享到 FriendFeed
推荐到豆瓣
分享到 Twitter
— Trackback URI
This entry (permalink) was posted on Friday, December 19, 2008, at 1:08 pm by askie. Filed in Uncategorized.
Post a Comment