jquery.mask.min

$(document).ready(function(){
   $('.date').mask('00/00/0000');
});
$(document).ready(function(){
   $('.date').mask('11/11/1111');
   $('.time').mask('00:00:00');
   $('.date_time').mask('00/00/0000 00:00:00');
   $('.cep').mask('00000-000');
   $('.phone').mask('0000-0000');
   $('.phone_with_ddd').mask('(00) 0000-0000');
   $('.phone_us').mask('(000) 000-0000');
   $('.mixed').mask('AAA 000-S0S');
   $('.cpf').mask('000.000.000-00', {reverse: true});
   $('.money').mask('000.000.000.000.000,00', {reverse: true});
 });

 

GitHub: https://github.com/igorescobar/jQuery-Mask-Plugin

Fonte: http://www.igorescobar.com/blog/2012/03/13/mascaras-com-jquery-mask-plugin/

Phonegap – Dicas

Gerar apk debug e release unsigned:

phonegap build android --debug --device
phonegap build android --release

Rodar emulador Android. Se não funcionar, abrir o emulador no Android Studio e tentar novamente

phonegap run android --emulator
phonegap run android -e

Ionic – Integrando jQuery com TypeScript

npm install --save jquery

npm install --save-dev typings

node_modules\.bin\typings install dt~jquery --global --save

npm install -save-dev webpack

allow cross origin access

The easy way is to just add the extension in google chrome to allow access using CORS.

(https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en-US)

Just enable this extension whenever you want allow access to no ‘access-control-allow-origin’ header request.

Or

In Windows, paste this command in run window:

chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security

This will open a new chrome browser which allow access to no ‘access-control-allow-origin’ header request.