Skip to content

Commit 2af8a8c

Browse files
author
zhangxinxu
committed
add ajax page onfirstpageinto callback test
add ajax page onfirstpageinto callback test
1 parent 7844449 commit 2af8a8c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/ajax-html/index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@
7272
location.href = this.href;
7373
});
7474
};
75-
var page_root_first = function() {
76-
// console.log("root?");
75+
var page_root_first = function(pageinto) {
76+
console.log("firstinto excuted!");
77+
pageinto.querySelector("#ajaxFirstInto").addEventListener("click", function() {
78+
console.log("should console only once!");
79+
this.style.color = "#" + (Math.random() + "").slice(-6) ;
80+
});
7781
};
7882

7983
Mobilebone.evalScript = true;

0 commit comments

Comments
 (0)