1<!doctype html>2"en">34<meta charset="UTF-8">5<title>Document</title>6<script src='./js/underscore.js'></script>7<script src='./js/backbone.js'></script>8 9Ten One<body> A - - the<script type="Text/javascript"> - - //Create a data model - + varStudent =Backbone.Model.extend ({ - + //initialization function A initialize:function () { at -num++; - console.log (num); - }, - - //set default values for the data model in defaults:{ -Name"", toPhone"" + } - the }); * $ varnum =0;Panax Notoginseng varS1 =Newstudent (); - //methods for assigning values to model objects theS1.Set({name:"Huangze Shower", Phone:"13751877760"}); + A varS2 =Newstudent (); the + //Gets the property value method of the Model object get (Attrname) or Escape (attrname) - $Console.log (S1.Get("Phone")); $</script> -</body> -Backbonejs creating a data model and setting default properties & Initialization Methods