dongpuchao1680 2015-11-06 08:22
浏览 81

从php中的angular url获取文件内容

I want to get file content from angular js url I fetched url from app.js file using route provider.I want to get file content for url 'http://localhost/project_folder/#/demoresponse'.I tried this to convert the page as pdf.How to get the file content for url 'http://localhost/project_folder/#/demoresponse'.Now I caught file not found error.

 app.js

  when('/demoresponse/', {
    templateUrl: 'partials/demo_response.html',

  })
php
  $html=file_get_contents('/#/demoresponse/');
  • 写回答

1条回答 默认 最新

  • drnzpd579935 2015-11-06 08:34
    关注

    Everything after the # is ignored and dont sent to the webserver. The part after # is only available on the client. As the server cant execute client side code with a simple get request, you couldn't get the result of your angularjs 'reponse'.

    评论

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?