Java小结

总结

  1. this和super

    this   :代表对象本身,存储对象的内存地址

    super:代表父类

  2. 谁跟谁

    静态的

    成员的对象

 

posted @   青叶书生  阅读(94)  评论(0编辑  收藏  举报
努力加载评论中...
/* 鼠标特效 */ var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("❤有点闲❤","⭐⭐⭐","好好学习,天天向上","星星之火"); var $i = $("").text(a[a_idx]); a_idx = (a_idx + 1) % a.length; var x = e.pageX, y = e.pageY; $i.css({ "z-index": 999999999999999999999999999999999999999999999999999999999999999999999, "top": y - 20, "left": x, "position": "absolute", "font-weight": "bold", "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")" }); $("body").append($i); $i.animate({ "top": y - 180, "opacity": 0 }, 1500, function() { $i.remove(); }); }); });
点击右上角即可分享
微信分享提示