본문 바로가기

2017/12

(6)
[link] online syntax highlighter HTML - androidstudio style 100000 ~ 200000 200000 ~ 300000 300000 ~ 400000 400000 ~ 500000 500000 ~ 600000 link : http://pinetools.com/syntax-highlighter
[jquery] how to get custom attribute value HTML 100000 ~ 200000 200000 ~ 300000 300000 ~ 400000 400000 ~ 500000 500000 ~ 600000 js - jquery $('ul li').on('click', function(){ var rangeMinPrice = $(this).attr('rangeMinPrice'); var rangeMaxPrice = $(this).attr('rangeMaxPrice'); alert('rangeMinPrice : ' + rangeMinPrice + ' | rangeMaxPrice : ' + rangeMaxPrice); }); jsfiddle : https://jsfiddle.net/h5Lbb8wv/
[javascript] get parameters to object var _param = {}; _param.data = null; _param.init = function () { _param.data = _param.ToConvert(); console.log('_param.data : ' + JSON.stringify(_param.data)); } _param.ToConvert = function () { var pairs = location.search.slice(1).split('&'); var result = {}; pairs.forEach(function (pair) { pair = pair.split('='); result[pair[0]] = decodeURIComponent(pair[1] || ''); }); return JSON.parse(JSON.s..
[C#] Unable to load DLL 'SqlServerSpatial.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) 로컬 개발환경 Visual Studio 2017 SSMS 17.4 EntityFramework 6 Sql Server 2008R2 SqlServerTypes Package Installed solution = web api , web site 서버 환경 web : Windows 2012R2 db : Sql Server 2008R2 로컬에서 개발 시에는 SqlServerSpatial.dll 관련 오류는 전혀 없었습니다. 운영환경에 web api를 올리면서 오류가 발생했고 무한 구글링이 시작됐습니다. 프로젝트에는 이미 SqlServerTypes 패키지가 설치된 상황이고 publish output directory 에도 Copy 가 되게 속성은 설정되어 있었습니다. 관련 오류 구글링에 가장 많이 걸리는 해결 ..
[javascript] replace 에서 | or \| 차이 var dataText = '12345|678910|asdfg'; var convertedText1 = dataText.replace(/|/g,"#"); var convertedText2 = dataText.replace(/\|/g,"#"); alert('convertedText1 : ' + convertedText1 + ' - convertedText2 : ' + convertedText2); demo : https://jsfiddle.net/dv88jbkb/
[javascript] guid 만들기 html 생성 css #guid { width:500px; } javascript var _guid = {}; _guid.get = function() { return _guid.s4() + _guid.s4() + _guid.s4() + _guid.s4() + _guid.s4() + _guid.s4() + _guid.s4() + _guid.s4(); } _guid.s4 = function() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) .substring(1); } $('#btn_create').on('click', function(){ $('#guid').val(_guid.get()); }); demo : jsfiddle link