ajaxzip3 / ajaxzip3.github.io Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://ajaxzip3.github.io/
License: MIT License
Home Page: https://ajaxzip3.github.io/
License: MIT License
入力された郵便番号の頭3桁 + .js ファイルが、以下のフォルダに無い場合、
404エラーが発生しますが、その場合、AjaxZip3.onFailureが実行されないようです。
フォルダ:https://yubinbango.github.io/yubinbango-data/data/
そのような入力も十分ありうるので、そのような場合もAjaxZip3.onFailureが実行されるようにするのは、
いかがでしょうか。
コードの修正なのか、000-999まで空ファイルでも良いので必ず存在するようにするか、なのか、何が良いかはわかりませぬが。
ご検討よろしくお願いします。🙇♂️
JSONDATA = 'https://yubinbango.github.io/yubinbango-data/data';
CACHE = [];
PREFMAP = [
null, '北海道', '青森県', '岩手県', '宮城県',
'秋田県', '山形県', '福島県', '茨城県', '栃木県',
'群馬県', '埼玉県', '千葉県', '東京都', '神奈川県',
'新潟県', '富山県', '石川県', '福井県', '山梨県',
'長野県', '岐阜県', '静岡県', '愛知県', '三重県',
'滋賀県', '京都府', '大阪府', '兵庫県', '奈良県',
'和歌山県', '鳥取県', '島根県', '岡山県', '広島県',
'山口県', '徳島県', '香川県', '愛媛県', '高知県',
'福岡県', '佐賀県', '長崎県', '熊本県', '大分県',
'宮崎県', '鹿児島県', '沖縄県'
];
fetchRemote = function {....}
When I build, errors happen, then I try to put "var" before them
EX: var JSONDATA ...
var CACHE ...
var PREFMAP ..
var fetchRemote ....
And it works. So if possible please add "var". BTW, i built by monaca (Hybrid App Development Tools).
Thanks in advanced
こんにちは。
AjaxZip3、素晴らしいです。ありがたく使わせていただいております。
一つ質問があるのですが、いったん正常な郵便番号を入れて、住所が反映されたあとに、
郵便番号を削除したり、存在しない郵便番号をいれたり、桁が足りなかった時の場合、
反映された住所の欄を、空欄に戻すことはできますでしょうか。
もし可能であればその方法をご教授いただければ幸いです。
ちなみに、件のフォームは、1ボックスで郵便番号7桁を入力させる場合の設定例(都道府県と以降の住所を分けない場合)のパターンで設置しています。
以上、ご質問させていただきました。
どうぞよろしくお願いいたします。
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.