Cupertino.js將 JavaScript 代碼編譯成 Cocoa
Cupertino.js 用來將 JavaScript 代碼編譯成 Cocoa。包含一個(gè)靜態(tài)的編譯器和動(dòng)態(tài)運(yùn)行環(huán)境。Cupertino.js 為 Objective-C 提供一個(gè)簡(jiǎn)單的接口。
調(diào)用 Objective-C 函數(shù)的示例代碼:
var bottlesOnTheWall = NSString.stringWithFormat("%@ of beer on the wall", 99)
bottlesOnTheWall.lowercaseString()
//short hand
bottlesOnTheWall.lowercaseString評(píng)論
圖片
表情
