前提・実現したいこと
以下のRandomUserGeneratorのAPIを使って、Aボタンを押すと写真と名前が生成されるようにしたいです。どこに何のコードを書けばよいかわかりません。
$.ajax({
url: 'https://randomuser.me/api/',
dataType: 'json',
success: function(data) {
console.log(data);
}
});
こちらのコードはどこに書けばよいでしょうか。どなたか回答お願い致します。
発生している問題・エラーメッセージ
エラーメッセージ
該当のソースコード
xaml
1<?xml version="1.0" encoding="utf-8" ?> 2<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" 3 xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 4 x:Class="toshiapp.GeneratorPage"> 5 <ContentPage.Content> 6 <StackLayout> 7 <Label Text="Welcome to Xamarin.Forms!" 8 VerticalOptions="CenterAndExpand" 9 HorizontalOptions="CenterAndExpand" /> 10 <Button Text="A" /> 11 <Button Text="B" /> 12 </StackLayout> 13 </ContentPage.Content> 14</ContentPage>
試したこと
ここに問題に対して試したことを記載してください。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。