当前位置: 代码迷 >> Ajax >> Ext4 未找到Model.js,该怎么解决
  详细解决方案

Ext4 未找到Model.js,该怎么解决

热度:559   发布时间:2013-01-01 14:04:18.0
Ext4 未找到Model.js

    <script language="javascript" type="text/javascript" src="@Url.Content("~/Scripts/ext-all.js")"></script>
    <link type="text/css" rel="Stylesheet" href="@Url.Content("~/Content/ext-all.css")" />
    <script type="text/javascript">
        Ext.Loader.setConfig({ enabled: true });  
        Ext.require([
                'Ext.grid.*',
                'Ext.data.*',
                'Ext.util.*',
                'Ext.state.*',
                'Ext.form.Panel'
                ]);
        Ext.onReady(function () {
            var isAdd = true; //默认是添加
            Ext.define('NewContent', {
                extend: 'Ext.data.Mode',
                fields:
                [
                'NewsCategoryID',
                'PublicDate',
                'NewsMainTitle',
                 'NewsSubTitle',
                'NewsSummary',
                'NewsListImage',
                 'NewsContent',
                'IsFocusNews',
                'FocusNewsImage',
                 'IsAllowComment',
                'IsPublicToMobileClient',
                'NewsStatus',
                'CreateDatetime'
                ]
            });

            var NewContentStore = Ext.create('Ext.data.Store', {
                model: 'NewContent',
                proxy: {
  相关解决方案