0
我想从角度js url获取文件内容我从app.js文件中使用路径提供程序获取url。我想为url'http://localhost/project_folder/#/demoresponse'获取文件内容。我试着将其转换该网页为pdf.How获取文件内容的url'http://localhost/project_folder/#/demoresponse'。现在我抓到文件未找到错误。从角url中获取文件内容在php
app.js
when('/demoresponse/', {
templateUrl: 'partials/demo_response.html',
})
php
$html=file_get_contents('/#/demoresponse/');
有没有其他方法可以做到这一点? – user3386779
取决于您的需求 - 最简单的方法是将您想要从浏览器发送的html发送到服务器 – Philipp
我想在php页面中获取html代码 – user3386779