逛奔的蜗牛

我不聪明,但我会很努力

   ::  :: 新随笔 ::  ::  :: 管理 ::

<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Title</title>

<link rel="stylesheet" type="text/css" href=".css"/>
<style type="text/css">
*
{ padding: 0px; margin: 0px; }
body, html 
{ font-family: arial; font-size: 14px; }
a, a:active, a:focus 
{
    outline
:none;
    blr
:expression(this.onFocus=this.blur());
}
</style>

<script src="js/lib/jquery.js"></script>
<script type="text/javascript">
$(
function() {
    console.log($(
"#in").attr("arg-1")); // 在jQuery-1.4.3前不能正确的读出此属性值
    console.log($(
"#in").attr("arg-2"));
    console.log($(
"#in").attr("arg-3"));
});
</script>
</head>

<body>
    
<span id="in" arg-1="biao" arg-2="huang" arg-3="loss">xxx</span>
</body>
</html>
posted on 2010-11-06 21:43 逛奔的蜗牛 阅读(444) 评论(0)  编辑 收藏 引用 所属分类: 其他编程

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理