javascript,jquery动态添加dom元素,并设定css属性,点击事件

$('<div>',{             alt:'hello img!',  //设置alt属性         title:'just for test',  //设置title属性         click:function(){  //绑定点击事件             alert("添加div元素!!!");           }       }).css({        
相关文章
相关标签/搜索