`
shappy1978
  • 浏览: 681238 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Set Permossion of Files

 
阅读更多

While install new cordova, it need system role, and even on calling command line, I found it will cause to set the project created by command line set system add the owner, and can't edit the project. So we need to grant write accessibility to current user:

Chmod -R 777 xxx

Or in Finder:

Cordova command:

Install NodeJs(bundle with npm): http://nodejs.org/

npm install -g cordova 

cordova create CordovaDemo

cd CordovaDemo

cordova platform add ios 

cordova run ios

cordova plugin add https://xxx

//*************************************

“Refused to execute inline script” error

change meta setting:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *"> to:

<meta http-equiv="Content-Security-Policy" content="default-src 'self' 'unsafe-inline' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self'; media-src *">

or: document.getElementById("xx").addEventListener("click", xxx);

$('xx').click(function(){xx});

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics