RRoman Nurikadd new theme
10a9318d创建于 2017年4月28日历史提交
import {Blah} from 'blah';

const URL = `http://app.com/?dev=${DEV}`;

class Foo extends Bar {
  constructor() {
    // init foo
    this.foo = 15;
    this.run();
  }

  /**
   * Run the given bar
   * @param {string} bar A bar to run.
   */
  run(bar) {
    let a = $.ajax({
      url: URL,
      data: {
        bar: 'hey there',
        items: [1, 2, 3]
      }
    }).then(result => {
      console.log(result.match(/regex/i));
    });
  }
}