Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 主干视图模板作为QQ上传器元素_Javascript_Jquery_Backbone.js_Valums File Uploader - Fatal编程技术网

Javascript 主干视图模板作为QQ上传器元素

Javascript 主干视图模板作为QQ上传器元素,javascript,jquery,backbone.js,valums-file-uploader,Javascript,Jquery,Backbone.js,Valums File Uploader,试图将QQ uploader元素设置为下划线.js模板中的元素 App.Views.NewCar = Backbone.View.extend({ el: '.content', initialize: function() { new qq.FileUploader({ element: ? //the element I want to use is in Underscore.js //t

试图将QQ uploader元素设置为下划线.js模板中的元素

App.Views.NewCar = Backbone.View.extend({
    el: '.content',
    initialize: function() {
        new qq.FileUploader({
            element: ? //the element I want to use is in Underscore.js
                       //template being rendered below by this view
            ...
        });
    },
    render: function() {
        //Underscore.js template call here
    }
});
如果我选择underline.js模板中的元素并尝试将其用作QQ上传器元素,那么它就不起作用


如何解决这个问题?有更好的解决方法吗?

调用
this.render()
然后使用
this如何。$el.find(…)
将立即尝试,谢谢!