问题描述
我只是想知道,如果几乎可以做任何事情,你可以用PHP在JavaScript中做任何事情。
在我的头脑中,我会说不。因为在我看来,javascript中最重要的精华之一就是动态DOM
操作,这是PHP无法做到的。
No.
Javascript能够以PHP无法与DOM交互。
Javascript函数可以被激活。事件处理程序,而PHP
不能。
-
Karl Groves
辅助功能讨论列表:
I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.
Off the top of my head, I would say no. Because in my opinion, one of
the most important essences of javascript is the dynamic DOM
manipulation, which PHP can not do.
Are you referring to server-side or client-side Javascript?
No.
Javascript is capable of interacting with the DOM in ways that PHP cannot.
Javascript functions are able to be "activated" event handlers whereas PHP
cannot.
--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com
Accessibility Discussion List: http://smallerurl.com/?id=6p764du
这篇关于JavaScript到PHP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!