日期:2014-05-16 浏览次数:20463 次
$(document).ready(
function
() {
$(
"p"
).text(
"The DOM is now loaded and can be manipulated."
);
});
$(
"p"
).bind(
"click"
,
function
(e)
{
var
str =
"( "
+ e.pageX +
", "
+
e.pageY +
" )"
;
$(
"span"
).text(
"Click happened! "
+ str);
});
$(
"p"
).bind(
"dblclick"
,
functi