Get started with backbone.js CDN

MIT licensed

Backbone.js is a lightweight library for building dynamic, model-view-view-controller web applications.

Tags:
  • collections
  • models
  • controllers
  • events

Stable version

Copied!

How to start using backbone.js CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with backbone.js CDN - cdnhub.io</title>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js"></script>
  <script src="https://cdn.cdnhub.io/backbone.js/1.6.0/backbone-min.js"></script>
  <style>
    #app { width: 200px; height: 200px; border: 1px solid black; }
  </style>
</head>
<body>
  <div id="app"></div>

  <script>
    class MyView extends Backbone.View {
      constructor(el) {
        super(el);
        this.render();
      }

      render() {
        this.$el.html('<p>Hello, Backbone.js!</p>');
        return this;
      }
    }

    const myView = new MyView('#app');
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!

All versions