摘要: W3c规定在属性值中是不能含有特殊字符的。但是在实际的项目中偶尔会遇到表达始终含有“#”和“.”字符的。例如html代码<div id="id#b">xx</div><div id="id[1]">aa</div>正确的获取方式:$("#id\\#b"); 转意特殊字符$("#id\\[1\\]")转移... 阅读全文
posted @ 2010-08-25 16:17 ActionBi 阅读(250) 评论(0) 推荐(0) 编辑