饲养卷曲HTML数据AngularJs [英] Feeding cURL HTML data to AngularJs

查看:115
本文介绍了饲养卷曲HTML数据AngularJs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的cURL得到一些数据,我通过一些POST值了。这里是code:

I'm using cURL to get some data and I'm passing some POST values to it. Here is the code:

$ch=curl_init();

curl_setopt($ch, CURLOPT_URL, "http://wwwsomesite.com/getdat.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "value=123465790");
curl_exec($ch);
curl_close($ch);

卷曲请求返回结果页面的整个HTML code。

The cURL request is returning the entire HTML code of the result page.

我要的是,页面和它的所有资产(图标/标识),以在iframe般的组件加载。

What I want is that the page and all its assets (icons/logos) to load in an iframe-like component.

我无法将数据提供给AngularJs。

I am unable to feed the data to AngularJs.

如何才能实现这一目标?

How can this be achieved?

推荐答案

而iframe可以通过POST请求使用的形式加载,你可以用你需要的所有值创建编程的形式。

The iFrame can be loaded via POST request using a form, you can create programatically a form with all the values that you need.

<一个href=\"http://stackoverflow.com/a/20354786/2044583\">http://stackoverflow.com/a/20354786/2044583

这篇关于饲养卷曲HTML数据AngularJs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆