본문 바로가기
728x90
반응형

분류 전체보기712

[jquery] 금액박스 1234567891011121314151617181920212223242526272829303132333435363738jQuery UI 정가: $(function() { $('#price').spinner({ max : 10000, min : 1000, step : 10, culture : 'ko-KR', numberFormat : 'c1' }); }); $(function() { $('#price1').spinner({ max : 11100, min : 1000, step : 100 }); }); Colored by Color Scriptercs jQuery UI 정가: 2017. 1. 30.
[jquery] button, input type 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748jQuery UI 버튼(Element) 앵커 체크 체크 1 체크 2 체크 3 라디오 1 라디오 2 라디오 3 $(function() { $('button').button(); $('a').button(); $('input[type="button"]').button(); $('input[type="submit"]').button(); $('input.one').button(); $('.set').buttonset(); }); Colored by Color Scriptercs jQuery UI 버튼(Element) 앵커 체크 체크 1 체크 2 체크 3 라.. 2017. 1. 30.
[jquery] 파일첨부 후, 이미지 확인하기 HTML5 12345678910111213141516171819202122232425262728293031HTML5 파일: $(function() { $('#file').change(function(e) { if (window.File) { var input = $('#file').get(0).files[0]; var reader = new FileReader(); $(reader).on('load', function(e) { $('#result').attr('src', this.result); }); reader.readAsDataURL(input); } }); }); Colored by Color Scriptercs 파일: 2017. 1. 30.
[Java] Java에서 Javascript를 호출 package egovframework.rte.kr.go.test; import java.io.FileNotFoundException; import java.io.FileReader; import javax.script.Compilable; import javax.script.CompiledScript; import javax.script.Invocable; import javax.script.ScriptEngine; import javax.script.ScriptEngineManager; import javax.script.ScriptException; public class JavaScriptRunner { // JavaScript에서 호출되는 메소드 public void sayHello(String.. 2017. 1. 30.
[Java] MapEntrySet package egovframework.rte.kr.go.test; import java.util.HashMap; import java.util.Map; import java.util.Set; public class MapEntrySet { public static void main(String[] args) { Map map = new HashMap(); map.put("A", "1"); map.put("B", "2"); map.put("C", "3"); map.put("D", "4"); // Map에 저장된 모든 요소를 구함 Set set = map.entrySet(); // 각 요소의 키와 값을 구함 for (Map.Entry entry : set) { System.out.println(entry... 2017. 1. 29.
728x90
반응형