개발
레이블이
JavaScript
인 게시물을 표시합니다.
모든 게시물 표시
레이블이
JavaScript
인 게시물을 표시합니다.
모든 게시물 표시
2016/05/20
[Bootstrap] 버튼 로딩 효과 / button loading
›
<button type= "button" id= "myButton" data-loading-text= "Loading..." class= "btn btn-primary...
2015/09/03
[Javascript] string byte length
›
// 최대 바이트 제한 function fnMaxByte(e, max) { var $target = $(e.target); var byteCount = getByteLength($target.val()); ...
2015/07/06
[Javascript] milliseconds to time string
›
function fnMsToTime (duration) { var milliseconds = parseInt ((duration% 1000 )/ 100 ) , seconds = parseInt ((duration/ 1000 ...
2014/11/26
[JavaScript] 팝업창 열기, 닫기 (popup window open and close)
›
function fnPopup() { var popupOption = 'directories=no, toolbar=no, location=no, menubar=no, status=no, scrollbars=no, resizable...
2014/11/19
[RegExp] Non-breaking space (char code 160) replace
›
- Non-breaking space - ASCII character 160 - char code 160 -   - \u00A0 - %A0 - 볼때는 일반적인 공백으로 보이지만 따로 처리해줘야 할 경우...
2014/11/17
[RegExp] 8자리 이상 16자리 이하 영문, 숫자, 특수문자 조합
›
암호규칙 정규식 var pwReg = /^(?=.*[a-zA-Z])(?=.*[!@#$%^*+=-])(?=.*[0-9]).{8,16}$/; if (pwReg.test(pw)) { return true; } else { return ...
2014/11/05
[JavaScript] 영문, 숫자, 특수문자, 자릿수 제한 (정규식 이용)
›
var check = /^(?=.*[a-zA-Z])(?=.*[!@#$%^*+=-])(?=.*[0-9]).{8,16}$/; if (!check.test(pw)) { // fail } else { // success }
2014/11/03
[JavaScript] 로그인 아이디 저장(세션)
›
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib ...
2014/07/17
[JavaScript] KakaoTalk App share url (카톡 url 공유)
›
<!doctype HTML> < html > < head > < meta charset = "utf-8" > < meta http-equiv = ...
[JavaScript] Facebook, Twitter share url
›
*Twitter - http://twitter.com/share *Facebook - http://facebook.com/sharer.php *Facebook with parameter - var facebook_url = 'h...
[JavaScript] LINE App share url (LINE url 공유)
›
*Format 1 - http://line.me/R/msg/<CONTENT TYPE>/?<CONTENT KEY> *Format 2 - line://msg/<CONTENT TYPE>/<CONTENT KEY...
2014/07/10
[JavaScript] Detect Mobile Browsers
›
if (navigator.userAgent.match(/(android)|(iphone)|(ipod)|(ipad)/i)) { } window . mobilecheck = function () { var chec...
2014/07/09
[JavaScript] in_array vs. $.inArray vs. indexOf()
›
http://jsperf.com/in-array-vs-inarray-vs-indexof/5
[jQuery plugin] TouchSwipe (jquery.touchSwipe.js)
›
클릭으로도 동작해서 테스트시에도 용이함 $ ( function () { //Enable swiping... $ ( "#test" ). swipe ( { //Generic sw...
2014/07/08
[jQuery] .find() vs .children()
›
The .find() and .children() methods are similar, except that the latter only travels a single level down the DOM tree. http://api.jquery...
[jQuery] jQuery mobile - swipe event
›
jQuery( .selector ).on( "swipe", function( event ) { ... } ) jQuery( .selector ).on( "swipeleft", function( event ) { ....
2014/06/30
Java와 JavaScript의 삼항연산자 다른점 (Ternary Operator in Java, JavaScript)
›
*JavaScript var a = 3; var b = 2; var max; max = a > b ? a : b; - 가능 a > b ? max = a : max = b; - 가능 *Ja...
Checking Types in JavaScript
›
* typeof operator Type Result Undefined "undefined" Null "object" Boolean "boolean" Number "numbe...
›
홈
웹 버전 보기