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});

猜你喜欢

转载自shappy1978.iteye.com/blog/2258517
set