if (sec < 60) {
sec = sec + '초';
} else if (sec < 3600){
sec = Math.floor(sec%3600/60) + '분 ' + sec%60 + '초';
} else {
sec = Math.floor(sec/3600) + '시간 ' + Math.floor(sec%3600/60) + '분 ' + sec%60 + '초';
}


- time to hour minute second




http://hangaebal.blogspot.kr/2014/06/javascript.html

'Blogger 이사' 카테고리의 다른 글

[JSP] JSP 액션 태그 사용  (0) 2016.01.14
[Servlet] Servlet 구동 기본  (0) 2016.01.14
[Javascript] String replaceAll  (0) 2016.01.14
[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14
str.replace(/foo/g, "bar")

or

String.prototype.replaceAll = function(str1, str2, ignore) {
 return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
}


http://hangaebal.blogspot.kr/2014/06/javascript-string-replaceall.html
http://stackoverflow.com/questions/2116558/fastest-method-to-replace-all-instances-of-a-character-in-a-string


'Blogger 이사' 카테고리의 다른 글

[Servlet] Servlet 구동 기본  (0) 2016.01.14
[JavaScript] '초' -> '시 분 초' 형태로  (0) 2016.01.14
[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14
[SQLite]Web SQL error handling  (0) 2016.01.14

select * from dates
where dte = date('now');

select dtm from datetimes
where dtm >= datetime(date('now'))
and dtm < datetime(date('now', '+1 day'));

select datetime(dtm, 'unixepoch', 'localtime') from unix
where dtm >= strftime('%s', date('now'))
and dtm < strftime('%s', date('now', '+1 day'));




http://hangaebal.blogspot.kr/2014/06/web-sql-search-on-dates.html
https://gist.github.com/dwurf/8929425

'Blogger 이사' 카테고리의 다른 글

[JavaScript] '초' -> '시 분 초' 형태로  (0) 2016.01.14
[Javascript] String replaceAll  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14
[SQLite]Web SQL error handling  (0) 2016.01.14
[JavaScript] String Object Methods  (0) 2016.01.14

- SQLite Syntax Documentation

- SQLite Documentation


http://sqlite.org/lang.html

'Blogger 이사' 카테고리의 다른 글

[Javascript] String replaceAll  (0) 2016.01.14
[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite]Web SQL error handling  (0) 2016.01.14
[JavaScript] String Object Methods  (0) 2016.01.14
[SQL] SQL get last row  (0) 2016.01.14



db.
transaction(tx) {
doQuery(tx, "SELECT * FROM TABLE",[],theSuccessHandler)
});

function doQuery(tx, query, values, successHandler) {
tx.executeSql(query, values, successHandler, errorHandler);
function errorHandler(transaction, error) {
alert("Error : " + error.message + " in " + query);
}
}


http://hangaebal.blogspot.kr/2014/06/web-sql-error-handling.html

http://stackoverflow.com/questions/16559832/how-to-get-the-context-of-a-web-sql-error

'Blogger 이사' 카테고리의 다른 글

[SQLite] Web SQL search on dates  (0) 2016.01.14
[SQLite] SQLite Syntax Documentation  (0) 2016.01.14
[JavaScript] String Object Methods  (0) 2016.01.14
[SQL] SQL get last row  (0) 2016.01.14
[JavaScript] key, value Array Sort  (0) 2016.01.14

+ Recent posts