asp.net 페이지에서 SimpleWeather jquery 플러그인을 사용하고 있습니다. https://github.com/monkeecreate/jquery.simpleWeatherSimpleWeather jquery plugin
난 그냥이 개 질문이 :
내가 오전과 오후에 시간을 얻을를, 누군가 24 시간에 그것을 해결하는 방법을 알고 이잖아있다.
내가 weather.code를 알고 있다면 http://developer.yahoo.com/weather/#codes 나는 어떻게 든 뜨거운, 우박에 대한 나의 자신의 이름을 할 수 있습니까?
$ .getJSON ( weatherUrl, 기능 (데이터) { 경우 (데이터! == 널 & & data.query.results! == NULL) {$ .each (data.query.results 함수 (I, 결과) { 경우 (.! result.constructor.toString() 같이 IndexOf ("배열") == -1) { 결과 = [0] 상기 결과 }
var currentDate = new Date(); var sunRise = new Date(currentDate.toDateString() + ' ' + result.astronomy.sunrise); var sunSet = new Date(currentDate.toDateString() + ' ' + result.astronomy.sunset); if (currentDate > sunRise && currentDate < sunSet) { var timeOfDay = 'd'; } else { var timeOfDay = 'n'; }
안녕하세요 Thx는 답을 구하는 데 도움이되는 멋진 방법, 2 개의 첫 번째 코드가 있고 작동하는 100 %, 마지막 코드 인 "공백"은 얼마나 많은 일반 JS 코드입니까? 나는 변화가 필요해 !!? plz. 주요 질문에서 편집을 참조하십시오 .. –
UV 인덱스를 얻을 수있는 방법이 있습니다. –
안녕 Yuriy Rozhovetskiy 내 의견을 본 적이있다!? –