打开ABP的事例项目SimpleTaskSystem.WebSpaAngular 中LayoutView


<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->

<!-- 添加对ABP系统运行时动态创建的脚本文件的引用 -->

<script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>
<script src="~/AbpScripts/GetScripts" type="text/javascript"></script>


1).<script src="~/api/AbpServiceProxies/GetAll?type=angular"></script>

Abp.WebApi.Controllers.Dynamic.Scripting.AbpServiceProxiesController

 

Abp\Framework\scripts\libs\requirejs\plugins\service.js

define(function () {
    return {
        load: function (name, req, onload, config) {
            var url = abp.appPath + 'api/AbpServiceProxies/Get?name=' + name;
            req([url], function (value) {
                onload(value);
            });
        }
    };
});
View Code

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-08-25
  • 2022-12-23
  • 2021-10-17
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2021-06-20
  • 2021-10-15
  • 2022-01-20
  • 2021-07-29
  • 2022-12-23
  • 2021-11-01
  • 2022-02-07
相关资源
相似解决方案