Backbone.js $ Utility Last Updated : 02 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report Backbone.js $ Utility is useful when we have multiple jQuery. It is used to specify the particular object as its DOM or AJAX library. Syntax: Backbone.$ = $ Properties: This utility cannot takes any parameters. Example 1: In this example, we will illustrate the Backbone.js $ Utility. Here we will define the utility function default ajax library. HTML <!DOCTYPE html> <html> <head> <title>BackboneJS $ Utility</title> <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js" type="text/javascript"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js" type="text/javascript"> </script> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h3>BackboneJS $ Utility</h3> <script type="text/javascript"> Backbone.$ = $; console.log(Backbone); </script> </body> </html> Output: Backbone.js $ Utility Example 2: In this example, we will use an object as an AJAX library property. HTML <!DOCTYPE html> <html> <head> <title>BackboneJS $ Utility</title> <script src= "https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.2/underscore-min.js" type="text/javascript"> </script> <script src= "https://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js" type="text/javascript"> </script> </head> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <h3>BackboneJS $ Utility</h3> <script type="text/javascript"> Backbone.$ = { VERSION : '1.1.0', emulateHTTP : true , emulateJSON : true }; console.log(Backbone.$); </script> </body> </html> Output: Backbone.js $ Utility Reference: https://backbonejs.org/#Utility-Backbone-$ Comment More infoAdvertise with us Next Article Backbone.js js Routing J jeemains0neet Follow Improve Article Tags : JavaScript Web Technologies Backbone.js Backbone-Utility Similar Reads Backbone.js Tutorial Backbone.js is a lightweight JavaScript library for structuring JavaScript code and the structure of Backbone is similar to MVC/MV* framework. It makes programmers to plan out single-page applications. It is built on the MVC approach, which abstracts data into models and DOM into views before connec 3 min read Backbone.js noConflict Utility The Backbone.js noConflict Utility is used when we want the Backbone object as its original value. We can use the return value of the Backbone of this function as a reference to the Backbone. Syntax: var backbone = Backbone.noConflict() ; Parameter: This Function doesn't take any parameter. Example 2 min read Backbone.js js Routing Backbone.js is a compact library used to organize JavaScript code. Another name for it is an MVC/MV* framework. If you are not familiar with MVC, it's just a method for creating user interfaces. JavaScript functions make it much simpler to create a program's user interface. Models, views, events, ro 2 min read Backbone.js url Model The Backbone.js url Model is a function that is used to get the relative url where the model's resource would be located on the server. If the model is located somewhere else, override this method with the correct logic to get the model. General URLs are of the form of [ Collection.url]/[id]' but we 2 min read Backbone.js route Router Backbone.js route Router is a method that is used to create the route for the router manually. The argument of the route may be a routing string or regular expression and each capture string from the route is passed to the callback function of the route. Syntax:router.route( route, name, callback ); 2 min read Backbone.js set Model In this article, we will see the Backbone.js set() model. The Backbone.js set() model is used to assign or set the value to the attribute in a model. In other words, this model can be utilized to set the hash of attributes, i.e one or many attributes can be set on the model. The change event will be 2 min read Like