simplePage.js 492B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /**
  2. *
  3. * @authors Eric Hsiao
  4. *
  5. */
  6. simplePage = function (){
  7. //private menbers
  8. //private methods
  9. function init () {
  10. console.log('simplePage is loaded.');
  11. }
  12. function intoPage() {
  13. }
  14. function leavePage() {
  15. }
  16. //constructor
  17. {
  18. $(document).ready(function() {
  19. init();
  20. });
  21. }
  22. //public
  23. return {
  24. intoPage : function () {
  25. intoPage();
  26. },
  27. leavePage : function () {
  28. leavePage();
  29. }
  30. };
  31. };
  32. var simplePage = new simplePage();