BackboneJS - Event -Trigger - Backbone.js

Description

It invokes the callback functions for the given events.

Syntax

Parameters

  • event − It binds an object.
  • args − It passes the values/arguments to the callback function.

Example

Output

Let us carry out the following steps to see how the above code works −

  • Save the above code in the trigger.htm file
  • Open this HTML file in a browser.

All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Backbone.js Topics