J'avaScript not in HTML
J'avaScript not in HTML
我正在尝试在iOS应用程序中开发应用程序用户界面。iOS应用支持JavaScript和SVG;这个iOS应用程序还有一个编辑器,我正在其中开发界面。我们的想法是使用SVG来制作图形(在Illustrator或InkScape中开发),然后使用JavaScript来处理动画、计算或逻辑。
话虽这么说,我熟悉使用JavaScript来操作HTML的DOM。在这种环境下,我似乎做不到。常用的getElementById
、ownerDocument
、setInterval
等方法都不起作用。一般来说,HTML中使用的常见文档或窗口级方法似乎不起作用。
所以我猜这是因为没有DOM让JS与之交互。那么等价的是什么呢?当javascript不与HTML一起使用时,是否存在某种javascript默认的抽象/层次结构?
因为没有HTML,所以这些方法对API的等效DOM没有任何影响。
相关文章:
- window.opener not working in chrome & IE
- ng-class not working properly in 'AngularJs'
- limitTo not working in ng-repeat in AngularJs
- 'Require is not defined' in Netbeans - Javascript
- Use href NOT onClick in hyperlink - Javascript
- :not and :first in jquery
- document.execCommand('copy') on objects not in DOM?
- XMLHTTPRequest.send() in not working firefox
- Indy TIdHTTPServer OnCommandGet javascript in html not execu
- window.open as tabs not pop ups in Chrome
- 对于单选输入,键入onclick event not working in form tag
- Javascript not working in <a>
- SelectToUISlider not changing value in safari
- OOP jQuery Plugin elem undefined in one place and not in oth
- J'avaScript not in HTML
- 复选框单击not in sync -Jquery
- 如何修复“;return not in function”;firebug上显示的错误
- Shot Javascript <script></script> not in TextAre
- Selenium Exception : "return not in a function"
- Bitwise NOT in ruby