3-7 Angular-php桥接跨域

php桥接跨域

1.桌面myApp添加html, 拷贝6, 修改url,通过jsonp获取不到数据(演示)

2.服务器 day03-code ,添加php, html

  • https://moment.douban.com/api/stream/date/2016-08-20?alt=json&apikey=0bcf52793711959c236df76ba534c0d4&app_version=1.7.4&douban_udid=d623045db9fcb0d5243174c1bf1a675f887047c0&format=full&udid=9a34d8b038ff38971050199b0c5ee9c60c6d1ca3&version=6

问题: Warning: file_get_contents() [function.file-get-contents]: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?

[图片上传失败...(image-581d40-1535601967685)]

  • 1.查看wamp有没有打开, 是不是绿色
  • 2.配置php. setting->Languages&Frameworks->PHP

你可能感兴趣的:(3-7 Angular-php桥接跨域)