RedJini Blog
http://blog.redjini.com/
2024-03-19T18:19:17+09:00
Textcube 1.9.3 : poco a poco
[node.js] ajax로 타 도메인과 연동 문제 / CORS(Cross-Origin Resource Sharing)
나그네
http://blog.redjini.com/275
2014-01-02T18:14:32+09:00
2013-12-20T21:48:58+09:00
클라이언트 소스(브라우저) <pre name="CODE" class="brush:js highlight:[2]"> $.ajax({ url : "192.168.48.123/api/client", type : "POST", cache : false, dataType:"json", success: function(data) { console.log(data); }, });</pre> 오류메세지XMLHttpRequest cannot load http://192.168.48.123/api/clien...
<!-- ACEPRO -->
<div class='google_ad_line_top' id='google_ad_line_top'></div>
<div class='google_ad' id='google_ad'>
<script type='text/javascript'>
<!--
google_ad_client = 'ca-pub-8164287241783066';
/* 블로그 468*60 */
google_ad_slot = '6132571865';
google_ad_width = 468;
google_ad_height= 60;
//-->
</script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
</div>
<div class='google_ad_line_bottom' id='google_ad_line_bottom'></div>
<div class="scposts">
<h4>"<a href="http://blog.redjini.com/category/17">JavaScript</a> / <a href="http://blog.redjini.com/category/20">Node.JS</a>" 분류의 다른 글</h4>
<table>
<tr><td><a href="http://blog.redjini.com/257">[node.js] cluster를 이용한 멀티코어(multi-core) 사용</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/256">[node.js] traceback</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/255">[node.js] log4js PatternLayout 사용하기</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
<tr><td><a href="http://blog.redjini.com/254">[node.js] Strict mode</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
</table></div><p><strong><a href="http://blog.redjini.com/275">글 전체보기</a></strong></p>
[node.js] cluster를 이용한 멀티코어(multi-core) 사용
나그네
http://blog.redjini.com/257
2014-01-02T18:14:20+09:00
2013-10-22T13:12:08+09:00
셈플 [code node.js]var express = require("express" );var http = require("http" );var cluster = require("cluster" );var os = require("os" );if( cluster.isMaster){ var cpu = os.cpus().length; for(var i=0; i<cpu; i++){ cluster.fork(); } cluster.on("exit"...
<!-- ACEPRO -->
<div class='google_ad_line_top' id='google_ad_line_top'></div>
<div class='google_ad' id='google_ad'>
<script type='text/javascript'>
<!--
google_ad_client = 'ca-pub-8164287241783066';
/* 블로그 468*60 */
google_ad_slot = '6132571865';
google_ad_width = 468;
google_ad_height= 60;
//-->
</script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
</div>
<div class='google_ad_line_bottom' id='google_ad_line_bottom'></div>
<div class="scposts">
<h4>"<a href="http://blog.redjini.com/category/17">JavaScript</a> / <a href="http://blog.redjini.com/category/20">Node.JS</a>" 분류의 다른 글</h4>
<table>
<tr><td><a href="http://blog.redjini.com/275">[node.js] ajax로 타 도메인과 연동 문제 / CORS(Cross-Origin Resource Sharing)</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/12/20</td></tr>
<tr><td><a href="http://blog.redjini.com/256">[node.js] traceback</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/255">[node.js] log4js PatternLayout 사용하기</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
<tr><td><a href="http://blog.redjini.com/254">[node.js] Strict mode</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
</table></div><p><strong><a href="http://blog.redjini.com/257">글 전체보기</a></strong></p>
[node.js] traceback
나그네
http://blog.redjini.com/256
2014-01-02T18:14:09+09:00
2013-10-22T11:53:36+09:00
셈플 [code node.js]var traceback = require("traceback");function start() { first() }function first() { second() }var second = function() { last() }function last() { var stack = traceback(); console.log("I am " + stack[0].name + " from file " + stack[0].f...
<!-- ACEPRO -->
<div class='google_ad_line_top' id='google_ad_line_top'></div>
<div class='google_ad' id='google_ad'>
<script type='text/javascript'>
<!--
google_ad_client = 'ca-pub-8164287241783066';
/* 블로그 468*60 */
google_ad_slot = '6132571865';
google_ad_width = 468;
google_ad_height= 60;
//-->
</script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
</div>
<div class='google_ad_line_bottom' id='google_ad_line_bottom'></div>
<div class="scposts">
<h4>"<a href="http://blog.redjini.com/category/17">JavaScript</a> / <a href="http://blog.redjini.com/category/20">Node.JS</a>" 분류의 다른 글</h4>
<table>
<tr><td><a href="http://blog.redjini.com/275">[node.js] ajax로 타 도메인과 연동 문제 / CORS(Cross-Origin Resource Sharing)</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/12/20</td></tr>
<tr><td><a href="http://blog.redjini.com/257">[node.js] cluster를 이용한 멀티코어(multi-core) 사용</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/255">[node.js] log4js PatternLayout 사용하기</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
<tr><td><a href="http://blog.redjini.com/254">[node.js] Strict mode</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
</table></div><p><strong><a href="http://blog.redjini.com/256">글 전체보기</a></strong></p>
[node.js] log4js PatternLayout 사용하기
나그네
http://blog.redjini.com/255
2014-01-02T18:13:52+09:00
2013-10-21T20:44:01+09:00
셈플코드 [code node.js]var log4js = require("log4js");/** * PatternLayout * Format for specifiers is %[padding].[truncation][field]{[format]} * e.g. %5.10p - left pad the log level by 5 characters, up to a max of 10 * Fields can be any of: * - %r time in t...
<!-- ACEPRO -->
<div class='google_ad_line_top' id='google_ad_line_top'></div>
<div class='google_ad' id='google_ad'>
<script type='text/javascript'>
<!--
google_ad_client = 'ca-pub-8164287241783066';
/* 블로그 468*60 */
google_ad_slot = '6132571865';
google_ad_width = 468;
google_ad_height= 60;
//-->
</script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
</div>
<div class='google_ad_line_bottom' id='google_ad_line_bottom'></div>
<div class="scposts">
<h4>"<a href="http://blog.redjini.com/category/17">JavaScript</a> / <a href="http://blog.redjini.com/category/20">Node.JS</a>" 분류의 다른 글</h4>
<table>
<tr><td><a href="http://blog.redjini.com/275">[node.js] ajax로 타 도메인과 연동 문제 / CORS(Cross-Origin Resource Sharing)</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/12/20</td></tr>
<tr><td><a href="http://blog.redjini.com/257">[node.js] cluster를 이용한 멀티코어(multi-core) 사용</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/256">[node.js] traceback</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/254">[node.js] Strict mode</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
</table></div><p><strong><a href="http://blog.redjini.com/255">글 전체보기</a></strong></p>
[node.js] Strict mode
나그네
http://blog.redjini.com/254
2014-01-02T18:13:34+09:00
2013-10-21T19:33:31+09:00
● Strict mode 사용법 - js 파일 혹은 function 에 명시 js 파일 사용예) <pre name="CODE" class="brush:js highlight:[2]"> //test.js"use strict";var v = "test variable";</pre> function 사용예) [code js (highlight:3)] //test.jsfunction test(){ "use strict"; var result = "test variable"; return resul...
<!-- ACEPRO -->
<div class='google_ad_line_top' id='google_ad_line_top'></div>
<div class='google_ad' id='google_ad'>
<script type='text/javascript'>
<!--
google_ad_client = 'ca-pub-8164287241783066';
/* 블로그 468*60 */
google_ad_slot = '6132571865';
google_ad_width = 468;
google_ad_height= 60;
//-->
</script>
<script type='text/javascript' src='http://pagead2.googlesyndication.com/pagead/show_ads.js'></script>
</div>
<div class='google_ad_line_bottom' id='google_ad_line_bottom'></div>
<div class="scposts">
<h4>"<a href="http://blog.redjini.com/category/17">JavaScript</a> / <a href="http://blog.redjini.com/category/20">Node.JS</a>" 분류의 다른 글</h4>
<table>
<tr><td><a href="http://blog.redjini.com/275">[node.js] ajax로 타 도메인과 연동 문제 / CORS(Cross-Origin Resource Sharing)</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/12/20</td></tr>
<tr><td><a href="http://blog.redjini.com/257">[node.js] cluster를 이용한 멀티코어(multi-core) 사용</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/256">[node.js] traceback</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/22</td></tr>
<tr><td><a href="http://blog.redjini.com/255">[node.js] log4js PatternLayout 사용하기</a> <span class="scp_cm">(0)</span></td><td class="scp_date">2013/10/21</td></tr>
</table></div><p><strong><a href="http://blog.redjini.com/254">글 전체보기</a></strong></p>