Skip to content

Commit

Permalink
update!
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Mar 12, 2013
1 parent 54cf552 commit c09f989
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion navigator.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
</iframe>
<script>
navigator.log = function(msg) {
//由于IE6-7下没有控制台,我们把调试信息打印到页面
var div = document.createElement("div");
div.innerHTML = msg;
document.body.appendChild(div)
}
navigator.a = function(msg) {
navigator.log("这是父页面中的a方法" + msg);
navigator.log("这是父页面中的a方法: " + msg);
}
var iframe = document.getElementById("aaa");
iframe.attachEvent && iframe.attachEvent("onload", function() {
Expand Down

0 comments on commit c09f989

Please sign in to comment.