essoduke / jquery-twzipcode Goto Github PK
View Code? Open in Web Editor NEW建立三碼臺灣郵遞區號下拉清單的 jQuery Plugin - 讀取快速、不需資料庫。
Home Page: https://code.essoduke.org/twzipcode/
License: MIT License
建立三碼臺灣郵遞區號下拉清單的 jQuery Plugin - 讀取快速、不需資料庫。
Home Page: https://code.essoduke.org/twzipcode/
License: MIT License
我試過了data-required=true
但好像沒什麼效果
請問是不是我驗證地方錯誤了呢?
<div class="col-sm-3">
<div data-role="district"
data-name="selArea"
data-value=""
data-style="form-control zip-group zip-state"
data-required="true" class="inline twziptwzip s2 has-feedback">
</div>
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
<div class="help-block with-errors"></div>
</div>
<div class="col-sm-3">
<div data-role="zipcode"
data-name="zipcode"
data-value="160"
data-style="form-control"
class="twziptwzip has-feedback">
</div>
<span class="glyphicon form-control-feedback" aria-hidden="true"></span>
<div class="help-block with-errors"></div>
</div>
</div>
您好,感謝支持MIT。
地址中的「台」的正確寫法應為「臺」,例如:臺灣、臺北市、臺中市、臺南市、臺東縣、釣魚臺列嶼、臺西鄉(v1.7.9正確)、霧臺鄉(v1.7.9正確)。
以上說明,請問是否能夠修正呢?謝謝您。
參考資料:
不知是否願意註冊一下 😄 謝謝!
http://bower.io/docs/creating-packages/#register
Hi @essoduke ,
We are cdnjs team, we'd like to host this library.
The git auto-updater in cdnjs relies on git tags so that it can recognize the correct version and automatically update the repo.
Could you please add git tags for the repo?
If you have any suggestions, please let me know.
Thank you.
Hi @essoduke 大大您好,
我是 CDNJS 的成員之一,我們想要收錄這個 library 到 CDNJS 中。
CDNJS 是一個前端的資源庫,我們目前已經收錄了 3241 個 library ,這數字還會再持續成長中。
在這邊想請問您是否能為這個 repository 添加 git tag 呢?
因為當新的版本釋出的時候,我們的 CDNJS bot 會根據 git tag 來自動添加版本。
在維護上也更加的方便,並且也可以讓更多人透過 CDN 的服務更快速的存取您的 library。
若以上有不妥之處,還請您見諒。
期待您的回覆。
謝謝!
如果把 zipcode 的 div 放在第一個,就會因為還沒塞 Math.random().toString(36).substr(2, 10)
這個 id 而找不到 county 跟 district 元件
您好,感謝您製作的插件,很方便。想請教3碼郵遞區號是否能改為5碼?怎麼改呢?謝謝。
不好意**請問一下:
在chrome IE firefox上set值可以執行
但發現 safari 與手機上瀏覽器(實測chrome與safari) 無反應
我的情況是 我透過session將A頁的 county與district傳到B頁中 並想塞入到B頁面的select內
html部分:
js部分:
查詢 台北市 松山區
console出來session值 為台北市松山區
但另外有監看change時候value的變化 發現皆為default值 (此case為中正區)
safari上顯示與console部分:
chrome 對比部分:
輸入 宜蘭縣 礁溪鄉
console結果如下
session收到宜蘭縣礁溪鄉
onchange觸發第一次 切換縣市 所以為 宜蘭市 第二次為更改區域 切換為礁溪鄉 輸出成功
想請問有推薦辦法解決safari與mobile device的部分嗎?
Hi TWzipcode作者您好:
我想開發類似於 https://code.essoduke.org/twzipcode/ 這個範例網頁的Playground功能,可以讓使用者動態增加選擇城市與地區的欄位。我的code放置於此連結中:https://codepen.io/Ying-Chiao-Liao/pen/rNoWxGq。我目前遇到的問題是假設我第一組城市與地區的內容選好後:
再點擊"+"的按鈕新增一組城市與地區給使用則選擇後,原本第一組的城市會還原成原本的數值:
不曉得是否我是用上有誤,所以想向您請教一下,感謝!
大大是否有考慮加入 package.json 支援使用 npm/yarn 安裝?
https://docs.npmjs.com/getting-started/publishing-npm-packages
新竹縣 -> 峨'眉'鄉 目前是 峨'嵋'鄉
http://civil.chcg.gov.tw/files/2_1040729_%E5%85%AC%E5%91%8A.pdf
8/8 員林鎮已改制成員林市,連結是政府公告
http://news.ltn.com.tw/news/politics/breakingnews/1381240
頭份鎮已通過要改制為頭份市,目前還找不到政府公告
FYI
Rangi
如題
在 data-role="district" 的地方塞入 data-value="北區" 時會有 bug,顯示為東區而非北區
嘉義市東區、西區也有同樣問題
在載入舊資料時 因為台 是以簡字儲存 所以 dc 會有值 但在 data 會找不到
if ('undefined' !== typeof data[dc][dd])
應該改為
if ('undefined' !== typeof data[dc] && 'undefined' !== typeof data[dc][dd])
npm 上顯示的版本號不是 1.7.14.1
而是 1.7.1-4.1
,造成 brunch 套件在打包檔案時會發生找不到對應版本的情形(會一直去找 1.7.14.1
找不到而報錯)。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.