总是头疼javascript的代码写起来不可维护,那么看看下面的代码: (function (w, $) { var app = { init: function () { var me = this; me.render(); me.bind(); }, datas: { num: 1 }, render: function () { var me = this; me.test = $('#table td'); }, bind: function () { var me = this; m…