js-modelã¨ã¯ å ¬å¼ ï¼ http://benpickles.github.com/js-model/ js-modelã¯jQueryä¸ã§åããJavaScriptã§ã¢ãã«ãæ±ãããã®ãã¬ã¼ã ã¯ã¼ã¯ã 以ä¸ã®æç« ã¯å ¬å¼ãµã¤ãã®ãã¥ã¼ããªã¢ã«ã®åæ訳ã ãªãã¸ã§ã¯ãã®çæ ã¢ãã«ã¯ã©ã¹ã¯Model()ãã¡ã¯ããªã¼ã使ç¨ãã¦çæããã var Project = Model("project") ããã§"project"ã¢ãã«ã®ã¤ã³ã¹ã¿ã³ã¹ãçæã§ããããã«ãªãã ãªãã¸ã§ã¯ãã®æä½ attr()ã¡ã½ããã§å±æ§ãèªã¿æ¸ããããã¨ãã§ããã var project = new Project({ title: "stuff" }) project.attr("title", "nonsense") project.save() ãªãã¸ã§ã¯ãã®æ¢ç´¢ save()ãå¼ã¶ã¨ãã¢ãã«ã¯ã¯ã©ã¹ã®"ã³
{{#tags}}- {{label}}
{{/tags}}