我有一个casperJS脚本,当在命令行上运行时,它会返回一个JSON。我想要有这样的安排: 1)我创建一个网页2)点击网页上的按钮时,casperJS脚本在服务器端执行,并将结果张贴/返回到网页。
我怎样才能做到这一点呢?
编辑:单击按钮后,我将调用一个用php编写的AJAX进程。php脚本包含echo exec('casperjs sample.js');
它没有返回任何东西,但在检查got服务器错误日志时,我得到了错误
'casperjs' is not recognized as an internal or external command, oper
我有一个组,当它显示和隐藏时,我想做一个擦除效果。
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
<s:Wipe id="wipeUp" direction="up" duration="2000"/>
<s:Wipe id="wipeDown" direction="down" duration="2000&