Javascript中这两种方法样式有什么区别?这只是光学差异还是有更细微的差异?
Ticket.createDetailView = function(elem) {..}
Ticket = {
createDetailView: function(elem) {..}
}
Javascript中这两种方法样式有什么区别?这只是光学差异还是有更细微的差异?
Ticket.createDetailView = function(elem) {..}
Ticket = {
createDetailView: function(elem) {..}
}