歡迎加入我的 LINE ID: easter1021
在網路上參考幾份文件,最終選擇使用 Sergey Metlov 的範例,以下內容是我實作時遇到的問題以及詳解。
此篇文章執行的作業系統為
Windows 7
學習時間 10 分鐘
### 城市搜尋器 | |
link: https://github.com/rinvex/country | |
version: `5.1.*|5.2.*|5.3.*` |
<?php | |
// Hi, I am Charles<mufasa.hsu@gmail.com> | |
// let's go... | |
namespace App; | |
use Exception; | |
class DemoClass |
// 建立 instance | |
$token = ''; | |
$MailChimp = new \Drewm\MailChimp($token); | |
// 取得電子報資源 | |
$tmp = $MailChimp->call('campaigns/list', $params['args']); | |
// $tmp['data'] 是電子報列表 | |
$campaigns = $tmp['data']; |
歡迎加入我的 LINE ID: easter1021
在網路上參考幾份文件,最終選擇使用 Sergey Metlov 的範例,以下內容是我實作時遇到的問題以及詳解。
此篇文章執行的作業系統為
Windows 7
學習時間 10 分鐘
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:App1.Pages" | |
x:Class="App1.CustomerPage"> | |
<Label Text="Say something here..."/> | |
</ContentPage> |
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:local="clr-namespace:App1" | |
x:Class="App1.AutoArrangement" | |
Title="Auto-Arrangement"> | |
<ContentPage.Content> | |
<local:GridListView |
/** | |
* 這檔案是參考 https://forums.xamarin.com/discussion/21298/entrycell-password 並加以修正。 | |
* 主要是 xamarin 目前暫無密碼輸入的 EntryCell, | |
* | |
* 我增加的部份: | |
* 1. 建立 BindableProperty 讓 XAML 也可以使用 Value 屬性 | 2017.04 | |
*/ | |
using System; | |
using Xamarin.Forms; |
/** | |
* @description jQuery-scroll-bottom。 | |
* | |
* 指定 selector 如果有捲軸時,當滑動至底部時觸發事件 | |
* @module ScrollBottom | |
* @author 許益銘 <mufasa.hsu@gmail.com> | |
* @example | |
* require('./jquery-scroll-bottom'); | |
* | |
* // method 1 |
let _ = require('lodash'); | |
//Input | |
var input = [ | |
{ key: '1', val: 'a' }, | |
{ key: '2', val: 'b' }, | |
{ key: '3', val: 'c' } | |
]; | |
//Desired output |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>demo serializeArray of form to json object</title> | |
<script type="text/javascript" src="main.js"></script> | |
</head> | |
<body> | |
<form> | |
<input type="text" name="desc" value="demo serializeArray of form to json object."> | |
<input type="text" name="users[0].name" value="user A"> |