Open the inspector, and into the console, type
$('<some selector>').data()
and then hit return to evaluate the data()
method and show its return value directly.
There's no need to use console.log
unless you're calling it within non-interactive code.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…