wijmo and require.js





<!--RequireJs-->
<script type="text/javascript" src="http://cdn.wijmo.com/external/require.js"></script>
<script type="text/javascript">
    requirejs.config({
        baseUrl: "http://cdn.wijmo.com/amd-js/3.20142.45",
            paths: {
                "jquery": "jquery-1.11.1.min",
                "jquery-ui": "jquery-ui-1.11.0.custom.min",
                "jquery.ui": "jquery-ui",
                "jquery.mousewheel": "jquery.mousewheel.min",
                "globalize": "globalize.min",
                "bootstrap": "bootstrap.min", //Needed if you use Bootstrap.
                "knockout": "knockout-3.1.0" //Needed if you use Knockout.
            }
    });
</script>
<script id="scriptInit" type="text/javascript">
    require(["wijmo.wijgrid", "wijmo.data.ajax", "knockout.wijmo"], function () {
    $(document).ready(function () {...});
</script>

 
Ref:
http://wijmo.com/docs/wijmo/BindwijgridtoaDataView.html
http://wijmo.com/docs/wijmo/livewidgets/GridDataView.html
http://wijmo.gcpowertools.com.cn/demo/explore/explore.html?widget=Grid&sample=%E8%BF%9C%E7%A8%8B%E8%87%AA%E5%AE%9A%E4%B9%89%E5%88%86%E9%A1%B5
http://www.feeldesignstudio.com/2013/09/javascript-module-pattern-requirejs
http://www.ruanyifeng.com/blog/2012/11/require_js.html

评论

此博客中的热门博文

XML, XSL, HTML

Input in element.eleme.io

Data URI是由RFC 2397 ACE