首页 文章
  • 3 votes
     answers
     views

    把手定制助手 - 迁移到Webpack

    我们有一个基于主干,木偶和把手的应用程序,没有导入/导出或需要方法,用grunt管理,我们正在尝试迁移到webpack . 我遇到了车把定制助手的问题 . 我们帮手的代码: 'use strict'; function I18n() { this.constructor(arguments); } I18n.prototype = { constructor: functio...
  • 0 votes
     answers
     views

    在getJSON函数中分配变量

    在Backbone&marionette中,我正在使用json来获取我的翻译 . 我在onBeforeRender函数下的ItemView中执行此操作 . 但每当我调用“this.model.set”函数时,我总是会收到错误,说“TypeError:this.model is undefined” . 有没有办法设置一个在getJSON函数内分配的getJSON之外的变量? onBeforeRen...
  • 8 votes
     answers
     views

    如何告诉TypeScript动态添加属性?

    我在Typescript中使用Backbone.Marionette . 我写了自己的Marionette类型描述 . var ProviderSpa = new Backbone.Marionette.Application(); ProviderSpa.addRegions({ 'servicesRegion': "#services-offered" }); Pr...

热门问题