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 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用