Skip to content

OSX下运行 Javascript

Published: at 00:00
说明
OSX自带有个 Javascript Shell : JavaScriptCore
jsc的路径是:/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc
只需要ln 出来就行了

sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Resources/jsc /usr/local/bin/jsc