Select Chrome 开发工具中的元素无法正常工作?
Select element in Chrome Dev Tools not working?
我正在使用 Chrome DevTools 控制台尝试 select 此页面中的元素:http://www.ncbi.nlm.nih.gov/pubmed/?term=The+DIAMOND+(DHA+Intake+And+Measurement+Of+Neural+Development)+Study%3A+a+double-masked%2C+randomized+controlled+clinical+trial+of+the+maturation+of+infant+visual+acuity+as+a+function+of+the+dietary+level+of+docosahexaenoic+acid
但我发现我尝试 select returns 的所有内容都无效。例如,如果我在控制台中键入 $('body')
,它会 returns null:
为什么会这样?页面中肯定有一个<body>
标签。
与在其他站点的控制台中$('body')
查询相同returns 一个元素。
此站点覆盖 $
功能。请改用 jQuery
。
jQuery('body'); //Object { 0: <body>, context: HTMLDocument → pubmed, selector: "body", length: 1 }
我正在使用 Chrome DevTools 控制台尝试 select 此页面中的元素:http://www.ncbi.nlm.nih.gov/pubmed/?term=The+DIAMOND+(DHA+Intake+And+Measurement+Of+Neural+Development)+Study%3A+a+double-masked%2C+randomized+controlled+clinical+trial+of+the+maturation+of+infant+visual+acuity+as+a+function+of+the+dietary+level+of+docosahexaenoic+acid
但我发现我尝试 select returns 的所有内容都无效。例如,如果我在控制台中键入 $('body')
,它会 returns null:
为什么会这样?页面中肯定有一个<body>
标签。
与在其他站点的控制台中$('body')
查询相同returns 一个元素。
此站点覆盖 $
功能。请改用 jQuery
。
jQuery('body'); //Object { 0: <body>, context: HTMLDocument → pubmed, selector: "body", length: 1 }