小编enR*_*ser的帖子

你不能在"ons-navigator"中不提供"ons-page"元素

在Android设备上,我在加载onsenui页面时遇到此错误.这与http://onsenui.io javascript库有关.

您不能为"ons-navigator"提供"ons-page"元素.

onsen-ui

5
推荐指数
1
解决办法
2583
查看次数

Adsense协议不匹配

我一直收到有关https vs http与我的Adsense广告的协议不匹配的错误,并且不明白如何解决这个问题.

Blocked a frame with origin "https://googleads.g.doubleclick.net" from 
accessing a frame with origin "http://example.com".  The frame requesting 
access has a protocol of "https", the frame being accessed has a protocol
of "http". Protocols must match. 
Run Code Online (Sandbox Code Playgroud)

我找不到任何解决办法,为什么没有人面对这个问题?

adsense

5
推荐指数
0
解决办法
2754
查看次数

child_process以代码null退出

我在centos6.X中运行我的节点服务器,并分叉子进程.

var cp = require('child_process');
child = cp.fork(__dirname+'/worker');
child.on('exit', function (code, signal) {
            console.log('Child exited with code = ' +code+'  signal = '+signal);
 });
Run Code Online (Sandbox Code Playgroud)

但几秒钟后我收到了这个错误

子代码退出,代码= null signal = SIGKILL

我现在对如何摆脱这一点毫无头绪,没有更多的痕迹,关于发生了什么.

更多澄清

我把console.logs放在worker中,然后打印出来.工作人员正在等待来自主服务器的消息.但是等了几秒钟就退出了.我还使用node命令独立运行worker js,并且它不会退出.

相同的代码在我的本地OSX笔记本电脑上正常工作.但在云centos6.XI面临这个问题.

node.js

5
推荐指数
2
解决办法
4583
查看次数

找不到名字'cordova'.离子构建ios

我正在使用ionic2 build.我做了ionic plugin add cordova-plugin-file并使用了以下代码.

import {File} from 'ionic-native';
@Injectable()
export class GlobalVars {
  constructor(platform:Platform) {
    platform.ready().then(() => {
       this.appRootFolder = cordova.file.documentsDirectory;
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

然后我做了 ionic build android ,我得到了这个错误

找不到名字'cordova'

经过2个小时的挣扎,我按照命令解决了问题

npm install -g typings
typings install dt~cordova --save --global 
typings install dt~cordova/plugins/filesystem --save  --global
Run Code Online (Sandbox Code Playgroud)

这有助于构建android,但仍然无法用于iOS.当我跑这个ionic build ios我仍然得到

找不到名字'cordova'

ngcordova ionic2

0
推荐指数
1
解决办法
3527
查看次数

标签 统计

adsense ×1

ionic2 ×1

ngcordova ×1

node.js ×1

onsen-ui ×1