Home  >  Article  >  Backend Development  >  javascript 里头放PHP 代码

javascript 里头放PHP 代码

WBOY
WBOYOriginal
2016-06-13 12:30:12883browse

javascript 里面放PHP 代码
                if(strpos($_SERVER["HTTP_USER_AGENT"],"MSIE")){
          ?>

  <script><br /> $(document).ready(function() { <br /> $('.speakkerSmall').speakker({<br /> file: '<?php echo base_url('list/file/'. $recInfo['file'] . '/' . $recInfo['licno'] . '/' . session_id()); ?>',<br /> title: 'one single MP3',<br /> theme: 'light',<br /> poster: 'cover.jpg'<br /> });<br /> </script>

 

-----------------------------------
上面这一段:
 file: '',

怎么改?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn