Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很想知道我们是否可以在 xcode 中定义变量,然后在 HTML 或 javascript 中访问它。
例如,像这样在 xcode 中定义一个变量
NSString * abc = @"Hi there!";
并像这样在 Baker 或 phonegap 中访问它
<script> var xyz = xcode.abc //XCode alert(xyz); </script>