【问题标题】:Ext is not definied in ext.net mvcext.net mvc 中没有定义 ext
【发布时间】:2015-08-13 03:00:02
【问题描述】:

目前,我开始使用 ext.net mvc。所以,一切对我来说都是新的。请帮帮我。它显示 ext 未定义。我认为它缺少一些 js 文件。我创建了 Indext.cshtml 和代码如下: 先感谢您。

  @{
ViewBag.Title = "Index";
  }

<script>
Ext.onReady(function () {
    alert('start');
var myparams1 = new Object();
myparams1.id = 1;
Ext.Ajax.request({
    url: 'Services/AService.svc/GetMyData'      
    method: 'GET',
    success: function (response, options) {
        // response callback
        alert('Success');

    },
    failure: function (response, options) {
        Ext.MessageBox.alert('Failed', 'Unable to get');
    }

});
});        
</script>

【问题讨论】:

标签: wcf asp.net-mvc-4 ext.net


【解决方案1】:

我刚刚找到了链接。我们可以在cshtml中链接ext-base和ext-all。

 <script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/ext-2.2/release/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="http://extjs-public.googlecode.com/svn/tags/ext-2.2/release/ext-all.js"></script>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多