摘要: 假设上面一段代码,我们想获取 'This is some text' 这段文本值, jq提供的方法是 text(),但结果打印的是 ‘This is some textFirst span textSecond span text’, 可见text()方法返回的值是元素内所有子元素内的文本值,那么如 阅读全文
posted @ 2017-03-21 14:27 PajamaCat 阅读(5771) 评论(0) 推荐(1) 编辑