목록Programming (48)
반응형
Eungene's Imaginations...
이 소스에서 무엇보다 중요한 것은, Table을 이용해서 Backbone의 강점을 끌어내는 것입니다. 저도 제대로 몰라서, 주위 분께 물어물어 이제서야 해결하네요... 이제 중요한건, colspan, rowspan을 이용해서, 셀 병합을 하는 부분과, 솔루션에 맞추어서 이런저런 구성을 View로 만들어 보고, 그에 맞는 출력을 해주는 부분만 남은 것 같습니다. Javascript로 일일이 뿌려주는 일은 너무 노가다성 작업이 짙어서, 이번 기회에 좋은 스크립트를 알아가네요. 이 글을 보시는 모든 개발자 분들~ 즐거운 개발 되시길 기원 드리겠습니다. var bodyView = Backbone.View.extend({ el: 'body', initialize: function () { console.log(t..
var Book = Backbone.Model.extend({ initialize: function () { this.on("invalid", function (model, error) { console.log("**Validation Error : " + error + "**"); }); this.on("change", function (a) { // 로그를 남기는 여러가지 방법 console.log('Model Changed'); if (this.hasChanged('name')) { console.log('The name has changed'); } if (this.hasChanged('author')) { console.log('The author has changed'); } console.l..
var Book = Backbone.Model.extend({ initialize: function () { this.on("invalid", function (model, error) { console.log("**Validation Error : " + error + "**"); }); this.on("change", function (a) { // 로그를 남기는 여러가지 방법 console.log('Model Changed'); if (this.hasChanged('name')) { console.log('The name has changed'); } if (this.hasChanged('author')) { console.log('The author has changed'); } console.l..
var Book = Backbone.Model.extend({ initialize: function () { this.on("change", function () { // 로그를 남기는 여러가지 방법 console.log('Model Changed'); if (this.hasChanged('name')) { console.log('The name has changed'); } if (this.hasChanged('author')) { console.log('The author has changed'); } console.log('Changed attributes: ' + JSON.stringify(this.changed)); }); }, defaults: { name: 'Book Title', autho..
백본 프로젝트를 들어갔는데... 웹 언어를 많이 해보지 않아서.. 멘붕...그래서, 언어 적응차 기초적인 것부터 해 나가고 있는데... 구글링을 해도 관련 예제들이 많지는 않다. 테이블과 관련된 모든 예제들은 Table택 혹은 tr태그 뷰를 1개만 생성하고, tr태그를 수시로 append하는 방식을 보여주고만 있었다. 이 방식이 싫어서, table, tr, td뷰를 다 따로따로 만들고,
보호되어 있는 글입니다.