javascript
-
QUnit 사용하기 04javascript/JQunit 2015. 7. 24. 16:14
test04.html 123456789101112131415161718192021 QUnit Example01 // 구현코드를 넣는다. function intDouble(n){ return 2*n; } Colored by Color Scriptercs test004.js 123456789101112131415test( "intDouble검사1", function(){ equal(intDouble(1),2,"1을 넣으면 1의두배 2를 반환한다."); equal(intDouble(2),4,"2을 넣으면 2의두배 4를 반환한다."); equal(intDouble(2+3),10,"2+3을 넣으면 2+3의두배 10를 반환한다.");}); test( "intDouble검사2", function(){ equal(in..
-
기상청 XML 파싱javascript/Jquery 2015. 7. 15. 15:18
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 기상청 정보 파싱 ${data} (현재온도 : ${ta} ${desc}) 기상청 정보 - 전국날씨 Copyright hankyong.com Colored by Color Scriptercs