页面控制台提示:
说明PageOffice.js未引用,页面增加
<script type="text/javascript" src="~/pageoffice.js"></script>
如果还是访问不到这个js,检查一下Startup.cs,注册2个中间件即可。
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.public void Configure(IApplicationBuilder app, IWebHostEnvironment env){//其他代码........// 启用会话中间件app.UseMiddleware<PageOfficeNetCore.POServer.ServerHandlerMiddleware>();app.UseMiddleware<PageOfficeNetCore.POServer.AdminSealHandlerMiddleware>();}