본문 바로가기

Categories119

[etc] Cannot read property 'field' of undefined error Uncaught TypeError: Cannot read property 'field' of undefined위와 같은 에러가 뜨며 부트스트랩에 문제가 있다고함 부트스트랩 문제는 아니고.. 위와같이 table에thead의 th갯수와tbody의 tr갯수가 맞지 않아 생기는 현상. 위아래 태그 갯수를 맞춰주면 해결됨 if you got this error, tags count and tags count doesn't match.check your tags count. it should be same. 2017. 8. 8.
[MSSQL] 두개 이상 필드 값 비교 ORDER BY [MSSQL] 두개 이상 필드 값 비교 ORDER BY 두개 이상 필드값을 비교하여 정렬 해야할 경우 SELECT seq, addDt, moddt, * FROM [tableName] 각각 ORDER BY를 하면 첫 필드 부터 정렬 됨normal order by sortingSELECT * FROM [tableName] ORDER BY modDt DESC, addDt DESC Example) CASE문으로 조건을 주어 두 필드 이상의 값을 합하여 비교 가능using case with mssql SELECT * FROM [tableName] ORDER BY (CASE WHEN modDt '' Then modDt ELSE addDt END) DESC Example) 2017. 7. 26.
[JavaScript] $ Is not defined 에러 문제)디버깅 중 $ is not defined 에러 발생 이유)JQuery가 정상적으로 road되지 못하여 발생 해결방안)소스에 추가. Error)When you debugging, '$ is not defined' error comes up, Reason)the reason is JQuery cannot loaded normally. Solution)insert in source. 2017. 7. 24.
[JQuery] replace 콤마 제거 replace comma 금액필드에 , 제거 해야할 경우 amount.replace(",", "");-> only replace one comma-> 앞에 한개만 제거 amount.replace(/,/g, '');-> replace all comma-> 모든 콤마 제거-> 정규식 How to replace all of comma Result)amount = "1,000,000" amount.replace(",", "");1000,000 amount.replace(/,/g, '');1000000 2017. 7. 21.