我们有Hybrid AngularJS和Angular应用程序。最近,我们将#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
#define container_of(ptr, type, member) ((type *)((char *)(ptr) - offsetof(type, member)))
软件包的版本从struct sample {
int mem1;
char mem2;
int mem3;
};
int main(void)
{
struct sample sample1;
printf("Address of Structure sample1 (Normal Method) = %p\n", &sample1);
printf("Address of Structure sample1 (container_of Method) = %p\n",
container_of(&sample1.mem3, struct sample, mem3));
return 0;
}
更新为@angular-devkit/build-angular
升级软件包后,我可以登录应用程序,但第一页未加载。从技术上讲,我可以在地址栏中看到更改过的网址,但首页的Angular组件(例如仪表板)无法加载。在开发人员控制台和“网络”选项卡中没有错误。