- UID
- 70473
- 帖子
- 471
- 主題
- 468
- 精華
- 0
- 積分
- 522
- 楓幣
- 738
- 威望
- 521
- 存款
- 0
- 贊助金額
- 0
- 推廣
- 0
- GP
- 43
- 閱讀權限
- 50
- 性別
- 保密
- 在線時間
- 28 小時
- 註冊時間
- 2014-7-14
- 最後登入
- 2015-5-16
|
RandomUser is an API that provides you with a randomly generated user. These users can be used as placeholders in web mockups, and will save you time from creating your own placeholder information.
然後其實是 json 格式...- {
- results: [{
- user: {
- gender: "female",
- name: {
- title: "mrs",
- first: "mia",
- last: "evans"
- },
- location: {
- street: "7159 edwards rd",
- city: "seymour",
- state: "pennsylvania",
- zip: "37284"
- },
- email: "mia.evans22@example.com",
- password: "godfather",
- md5 hash: "15d628391f0eb58d7724041ab9a12ae2",
- sha1 hash: "58be9e2c7f22cd75d7af3c9e175b6465b280d61d",
- phone: "(471)-543-4073",
- cell: "(651)-308-4754",
- SSN: "160-76-1677",
- picture: "http://api.randomuser.me/0.2/portraits/women/17.jpg"
- },
- seed: "smallRabbit"
- }]
- }
複製代碼 調用方式:- $.ajax({
- url: 'http://api.randomuser.me/',
- dataType: 'json',
- success: function(data){
- console.log(data);
- }
- });
複製代碼 |
|