function MakeWord() { var word = new ActiveXObject("Word.Application"); // var doc = word .documents.open("c:\test.doc"); //此處為開啟已有的模版 var doc = word.Documents.Add("", 0, 1);//不開啟模版直接加入內容 var Range = doc.Range(); var sel =
原文:http://blog.appfog.com/node-js-is-taking-over-the-enterprise-whether-you-like-it-or-not/Luc Perkinshttp://www.linkedin.com/pub/dr-luc-perkins/22/7b3/a08TL;DR: The question is no longer if Node is enterprise ready. The question now is the
/** * 全選/反選 */$("#allcheck1").live("click",function(){ //擷取所有check var all = $("input[name='checkbox1']"); var isCheck = $("#allcheck1").get(0).checked; for(var i = 0 ; i < all.length; i ++){ if(isCheck){ all[i].checked = true; }else{ all[i]
Now I will introduce two jquery Plug-in, they are confirm and help message. Maybe you will need them in some development situation.Confirm1、What is confirm?You can base on the name, guess what it is? It include two buttons which is "yes" and "no", yo
You may know about SPDY, an experimental protocol for a faster webhttp://www.chromium.org/spdy/spdy-whitepaper announced by Google in 2009. SPDY is now supported by two major browsers (Google Chrome and Mozilla Firefox) and it’s running on most of
同步調用是以一種阻塞式調用比如說:古代的長城的烽火傳遞資訊,現在我們假設每個烽火只能看到相鄰的烽火狀態,每個烽火的狀態只有亮和暗。現在有A、B、C、D四個烽火,A首先點亮,B看到A的烽火亮了,立馬去點火,花了2秒點亮。但是這時候負責C烽火的人在睡覺,可是這時候所有人都在等待C點亮,終於C睡了2個小時候看到了B點亮,然後去點亮。D由於長期沒有點亮,導致烽火出現問題,因此整個過程都在等待D的完成。虛擬碼:if A completedo Belse wait Aif B completedo
來自本人論壇:www.tnodejs.com tnodejs.com最近大家都說兩者是一樣的,其實不然,本文來自http://www.hacksparrow.com/node-js-exports-vs-module-exports.html翻譯相信大家都很熟悉exports的用法了,你可以建立一個function在你的模組中如下:exports.name = function() { console.log('My name is Lemmy