Ning Ma blog

my technology tips

January, 2015

sample of handlebars.js with underscore.js

From above sample code, we can define very clear template (no need JavaScript in the template source).

example of backbone.js validate

Here is a good example of backbone validate

If the object is banckbone Model


The instanceof operator tests whether an object has in its prototype chain the prototype property of a constructor.