Error: Dynamic is undefined

AngularJS动态路由错误解析

1、错误描述

Error: Dynamic is undefined
@http://localhost:8080/Query/resource/global/scripts/app.js:149:11
e@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:36:313
h/<.instantiate@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:36:432
Fe/this.$get</<@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:76:47
b/<.compile/<@http://localhost:8080/Query/resource/global/plugins/angularjs/plugins/angular-ui-router.min.js:9:17610
$@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:70:197
B@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:59:255
g@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:51:335
D/<@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:50:444
l@http://localhost:8080/Query/resource/global/plugins/angularjs/plugins/angular-ui-router.min.js:9:16990
y/l.compile/</<@http://localhost:8080/Query/resource/global/plugins/angularjs/plugins/angular-ui-router.min.js:9:17216
Pe/this.$get</n.prototype.$broadcast@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:128:355
m/y.transitionTo/y.transition<@http://localhost:8080/Query/resource/global/plugins/angularjs/plugins/angular-ui-router.min.js:9:13178
f/<@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:112:113
Pe/this.$get</n.prototype.$eval@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:126:11
Pe/this.$get</n.prototype.$digest@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:123:98
Pe/this.$get</n.prototype.$apply@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:126:291
l@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:81:238
M@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:85:342
wf/</F.onload@http://localhost:8080/Query/resource/global/plugins/angularjs/angular.min.js:86:367
exchangeClient@http://localhost:8080/Query/resource/global/scripts/config.js:297:2
@http://localhost:8080/Query/home#/stockDynamic:76:16
m.Callbacks/j@http://localhost:8080/Query/resource/global/plugins/jquery.min.js:2:27239
m.Callbacks/k.fireWith@http://localhost:8080/Query/resource/global/plugins/jquery.min.js:2:28057
x@http://localhost:8080/Query/resource/global/plugins/jquery.min.js:4:21841
.send/b@http://localhost:8080/Query/resource/global/plugins/jquery.min.js:4:25897

<div ui-view="" class="fade-in-up ng-scope">

2、错误原因

由于用的是bootstrap,需要配置js有关的参数


3、解决办法

正确配置js问题

Build started: Project: noye01 *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Build target 'Target 1' compiling croutine.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\croutine.c: 0 warnings, 6 errors compiling queue.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\queue.c: 0 warnings, 6 errors compiling timers.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\timers.c: 0 warnings, 6 errors compiling heap_4.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos_port\MemMang\heap_4.c: 0 warnings, 6 errors compiling event_groups.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\event_groups.c: 0 warnings, 6 errors compiling main.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\User\main.c(89): warning: #223-D: function "usart3_init" declared implicitly usart3_init(9600); ..\User\main.c(90): warning: #223-D: function "usart3_rx" declared implicitly usart3_rx(1); ..\User\main.c(160): warning: #188-D: enumerated type mixed with another type current_ctrl = (current_ctrl + 1) % 5; // 现在有5个控制项 ..\User\main.c: 3 warnings, 6 errors compiling list.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\list.c: 0 warnings, 6 errors compiling tasks.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos\tasks.c: 0 warnings, 6 errors compiling freertos_hooks.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\User\freertos_hooks.c: 0 warnings, 6 errors compiling port.c... ..\User\FreeRTOSConfig.h(197): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetIdleTaskMemory( StaticTask_t **ppxIdleTaskTCBBuffer, ..\User\FreeRTOSConfig.h(198): error: #20: identifier "StackType_t" is undefined StackType_t **ppxIdleTaskStackBuffer, ..\User\FreeRTOSConfig.h(202): error: #20: identifier "StaticTask_t" is undefined extern void vApplicationGetTimerTaskMemory( StaticTask_t **ppxTimerTaskTCBBuffer, ..\User\FreeRTOSConfig.h(203): error: #20: identifier "StackType_t" is undefined StackType_t **ppxTimerTaskStackBuffer, ..\User\FreeRTOSConfig.h(209): error: #20: identifier "TaskHandle_t" is undefined extern void vApplicationStackOverflowHook( TaskHandle_t xTask, char *pcTaskName ); ..\User\FreeRTOSConfig.h(1): error: #37: the #endif for this directive is missing #ifndef FREERTOS_CONFIG_H ..\freertos_port\RVDS\ARM_CM3\port.c: 0 warnings, 6 errors ".\Objects\noye01.axf" - 60 Error(s), 3 Warning(s).
最新发布
11-07
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值