审查视图

public/assets/libs/requirejs-plugins/examples/img/relativePath.js 296 字节
郭盛 authored
1 2 3 4 5 6 7 8 9 10 11
//use the !rel flag to load file relative to this module or to baseUrl
define(['image!./software_engineer.png!rel'], function(engineer){

    return {
        init : function(wrapper){
            engineer.style.display = 'block';
            wrapper.appendChild(engineer);
        }
    };

});