之前为了测试一个模块优化问题,于是用angular-cli快速搭建了个ng5的脚手架demo,在应用惰性加载功能的时候发现浏览器报错如下: ERROR Error: Uncaught (in promise): TypeError: __webpack_require__.e is not a function TypeError: __webpack_require__.e is not a function at webpackAsyncContext (eval at ./src/$$_l…
Linux 的 GConf error 解决办法 问题: Centos系统创建用户oracle后,用该用户登陆系统,页面加载报错,导致重新进入Centos系统后出现: GConf error:Failed to contact configuration server;some possible cause are that you need to enable TCP/IP networking for ORBIT or you have stale NFSlocks due to a sys…
Mysql in子查询中加limit报错 select id from aa where id in ( select id from bb limit 10 ); 改写成 SELECT id FROM aa WHERE id IN ( SELECT * FROM (SELECT id FROM bb LIMIT 10) AS ids );…
# # This is the main Apache HTTP server configuration file. It contains the # configuration directives(官方指示) that give the server its instructions(指示). # See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. # In particular, see # &l…
rails console后: 2.1.4 :001 > User # => User (call 'User.connection' to establish a connection) 这是因为Active Record 建立连接是惰性的lazily. 直接用查询语法就好. gem 'faker'后就直接可以用了. 顶多写一句require 'faker'…
Player.CCB由body和arm两部分组成,它们都开启物理使能. 在GameScene.ccb中新建一个物理对象,将Player.ccb拖入该对象.此时编译运行App均正常. 然后继续添加其他物理对象Wall.ccb组成屏幕边界,这时App运行发生错误,log为: Collection <__NSArrayM: 0x78f97730> was mutated while being enumerated 发现源代码中断在场景的初始化方法中,该方法的功能是递归调用场景中每个子CCNode的…
①通过ng new angular-module创建一个全新的angular应用,默认不选路由 ②通过一下命令分别创建2个模块和1个组件 ng g m hx1 ng g c hx1 ng g m hx2 ng g c hx2 ng g c hx3 创建完成目录如下 ③将app.module和app.component改造 app.module如下: import { BrowserModule } from '@angular/platform-browser'; import { NgModu…