JavaScript到PHP? [英] JavaScript to PHP?

查看:57
本文介绍了JavaScript到PHP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道,如果几乎可以做任何事情,你可以用PHP在JavaScript中做任何事情。

解决方案



Numerator写道:

我只是想知道如果可以做几乎任何你可以在JavaScript中做的事情PHP。




在我的头脑中,我会说不。因为在我看来,javascript中最重要的精华之一就是动态DOM

操作,这是PHP无法做到的。


Numerator写道:

我只是想知道如果你可以在PHP中用JavaScript做几乎任何事情。



您指的是服务器端或客户端Javascript吗?


" The Numerator" <人********* @ gmail.com>写在

新闻:11 ********************** @ g10g2000cwb.googlegr psps.com:

我只是想知道如果几乎可以做任何你可以在PHP中用JavaScript做的事情。




No.

Javascript能够以PHP无法与DOM交互。

Javascript函数可以被激活。事件处理程序,而PHP

不能。


-

Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

辅助功能讨论列表: http://smallerurl.com/?id=6p764du


I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.

解决方案


The Numerator wrote:

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.


The Numerator wrote:

I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.



Are you referring to server-side or client-side Javascript?


"The Numerator" <al*********@gmail.com> wrote in
news:11**********************@g10g2000cwb.googlegr oups.com:

I was just wondering that if it is possible to do almost anything you
can do in JavaScript in PHP.



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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆