I use the ionic framework why not get json?
.controller('SearchCtrl', function($scope,$http) {
$http({method: 'GET', url: 'dwz.cn/create.php?url=www.qq.com'}).success(function(data)
{
$scope.= myUrl; // response data
});
})
view:
<ion-view title="url">
<ion-content class="has-header padding">
{{myurl}}
</ion-content>
</ion-view>
but This can be
.controller('SearchCtrl', function($scope,$http) {
$http({method: 'GET', url: 'new.json'}).success(function(data)
{
$scope.= myUrl; // response data
});
})