该文被密码保护。 阅读全文
posted @ 2013-07-31 12:41 24K纯屌 阅读(1) 评论(0) 推荐(0)
摘要: Attribute:$(”p”).addClass(css中定义的样式类型); 给某个元素添加样式$(”img”).attr({src:”test.jpg”,alt:”test Image”}); 给某个元素添加属性/值,参数是map$(”img”).attr(”src”,”test.jpg”); 给某个元素添加属性/值$(”img”).attr(”title”, function() { return this.src }); 给某个元素添加属性/值$(”元素名称”).html(); 获得该元素内的内容(元素,文本等)$(”元素名称”).html(”<b>new stuff< 阅读全文
posted @ 2013-06-14 14:33 24K纯屌 阅读(100) 评论(0) 推荐(0)