How to call a JavaScript function from PHP?

后端 未结 10 2378
误落风尘
误落风尘 2020-11-21 23:03

How to call a JavaScript function from PHP?

The followi

10条回答
  •  时光说笑
    2020-11-21 23:41

    Per now (February 2012) there's a new feature for this. Check here

    Code sample (taken from the web):

    executeString($JS, 'basic.js'));
    } catch (V8JsException $e) {
      var_dump($e);
    }
    
    ?>
    

提交回复
热议问题