锘??xml version="1.0" encoding="utf-8" standalone="yes"?>
—-瑙e帇鏂囦歡
tar -xvf phantomjs-1.9.7-linux-x86_64.tar.bz2
–灝嗙▼搴忕Щ鍒頒竴涓悎閫傜殑浣嶇疆
sudo mv phantomjs-1.9.7-linux-x86_64 /usr/local/src/phantomjs
—-鍒涘緩杞摼鎺ュ埌鐜鍙橀噺涓傝繖鏍峰彲浠ョ洿鎺ュ湪shell涓嬌鐢╬hantomjs鍛戒護
sudo ln -sf /usr/local/src/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
—-媯鏌ユ槸鍚︽甯稿伐浣?/p>
phantomjs –version
濡傛灉浣犵湅鍒板綋鍓嶇増鏈彿錛屽嵆琛ㄧず姝e父宸ヤ綔浜嗐?br />
--------------------------------------------------
Windows涓嬪畨瑁?/strong>
絎竴姝ワ細涓嬭澆浜哖hantomJS鍚庯紝鎶婂帇緙╁寘閲岀殑鏂囦歡澶硅В鍘嬪埌D鐩橈紝閲嶅懡鍚嶆枃浠跺す涓簆hantomjs錛岀劧鍚庡湪windows涓坊鍔犵幆澧冨彉閲?D:\phantomjs鍒癙ath涓傚湪榪欓噷鍏堜笉鐢ㄥ叧蹇僷hantomjs鏂囦歡澶逛笅鐨勫唴瀹廣?br />
md C:\temp
SET tmp=c:\temp
cd "c:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLServer\MSSQL\Binn\"
DQSInstaller.exe
As I said before, communication between Flash Player and its container has been made extremely easy. The new class that makes this process so easy is the ExternalInterface. We will begin in the ActionScript. First, we need to import this new class so we can use it (as2 only, in as3 it will work without the import):
import flash.external.ExternalInterface;
Next, we have to register any function we want to make available externally:
ExternalInterface.addCallback("addText", addText);
Basically, the code above will allow us to call the addText function (which I will show in a minute) from the C# application.
The addText function is as below. Basically, it takes a string input and appends it to a text box
function addText(val:String):void { inTxt.appendText(val + "\n"); // append text recieved from c# }
That’s it from the ActionScript side. Now all we need to do is call the function from C#. First, I add an instance of the Flash Player ActiveX control to my form and load the SWF we created in the form’s constructor:
private AxShockwaveFlash player; public DemoForm () { ... player.LoadMovie(0, Application.StartupPath + "\\EITest.swf"); player.Play(); ... }
Next, all we have to do is call the externalized method when desired. In my case, it is in response to the user clicking the send button:
private void sendBtn_Click(object sender, EventArgs e) { player.CallFunction("" + outTxt.Text + ""); }
Again, you will need to use the ExternalInterface in the ActionScript:
function send(evt : Event):void { ExternalInterface.call("sendText", outTxt.text); // function to call and it's parameters outTxt.text = ""; // reset text box }
As you can see, I am calling a method sendText and passing the input string as a parameter. Now to receive the message in C#, we first have to subscribe to the FlashCall event. You can do this in the constructor or from the activex properties panel on events tab.
Now the call made in ActionScript will be received in the request property of the event argument. For my particular call, the XML will look like this:
<invoke name="sendText" returntype="xml"> <arguments> <string>some text message here</string> </arguments> </invoke>
So now all we have to do is parse the XML in the event handler and invoke the C# function locally:
private void player_FlashCall(object sender, _IShockwaveFlashEvents_FlashCallEvent e) { // message is in xml format so we need to parse it XmlDocument document = new XmlDocument(); document.LoadXml(e.request); // get attributes to see which command flash is trying to call XmlAttributeCollection attributes = document.FirstChild.Attributes; String command = attributes.Item(0).InnerText; // get parameters XmlNodeList list = document.GetElementsByTagName("arguments"); // Interpret command switch (command) { case "sendText" : resultTxt.Text = list[0].InnerText; break; case "Some_Other_Command" : break; } }
鍗沖姞涓奧orkingDir: {app}銆傝inno setup FAQ.
浣跨敤WebProxy綾伙紝璇ョ被絀洪棿鍚?using System.net;
WebProxy proxyObject = new WebProxy("浠g悊鏈嶅姟鍣↖P鍜岀鍙o紙渚嬪錛歨ttp://proxyserver:80/錛?amp;quot;,true);
WebRequest req = WebRequest.Create("http://www.contoso.com"); //浣跨敤WebRequest涓婄綉
req.Proxy = proxyObject; //璁劇疆浠g悊
Jpxx.forceLogout()鏂規硶閫氳繃AJAX鎶鏈潵寮哄埗娉ㄩ攢鐢ㄦ埛錛屽嵆璋冪敤session.invalidate()鏂規硶銆?
杞澆:http://www.jpxx.org/?tid=54Deployment failure on Tomcat 6.x. Could not copy all resources to E:\apache-tomcat-6.0.16\webapps\HebbnWebServices. If a file is locked, you can wait until the lock times out to redeploy, or stop the server and redeploy, or manually remove the deployment at E:\apache-tomcat-6.0.16\webapps\HebbnWebServices
鍐嶆鐐歸儴緗叉寜閽椂灝變細鎻愮ず濡備笅錛?/p>
Undeployment Failure could not be redeployed because it could not be completely removed in the undeployment phase. the most common cuase of this problem is attempting to redeploy while the server is running,which has locked one or more files.
to correct the deployment you will need to stop the server and then redeploy the project before restarting the server.
瑙e喅鐨勫姙娉曞氨鏄湪Eclipse涓妸欏圭洰涓紩鐢ㄧ殑jar鏂囦歡閲嶆柊鍔犱竴閬嶅氨琛屼簡錛屽熀鏈師鍥犲氨鏄互鍓嶇殑jar鏂囦歡涓嶅瓨鍦ㄤ簡錛屼絾鏄」鐩俊鎭腑榪樻湁錛屽嵆欏圭洰鐨?classpath鏂囦歡涓繕鏈変笉瀛樺湪鐨刯ar鏂囦歡寮曠敤銆?/p>
鍙互鍙抽敭鐐歸」鐩悕縐幫紝閫夋嫨Properties,閫夋嫨Java Build Path,閫夋嫨Libraries,鎶婃墍鏈夐」鐩腑鐨刯ar閮絩emove錛岀劧鍚庡啀鐐?add jars"錛屾妸欏圭洰涓殑jar鏂囦歡閮藉姞榪涙潵錛屽啀嬈¢儴緗插氨姝e父浜嗐?/p>
杞嚜:http://blog.csdn.net/peihexian/archive/2008/06/18/2561816.aspx
ie7鏄劇ず鍑烘潵鐨刢heckbox灞呯劧鏄湭閫変腑鐨勪絾鏄痑lert鍑烘潵鐨勫嵈鏄痶rue錛岃孎F涓鍒囨甯?br />
鍚庢潵鏌ヤ簡鍗婂ぉ璧勬枡璇存槸ie鏄劇ず鐨勬椂鍊欏彧瀵圭姸鎬佹敼鍙樻瘮杈冩晱鎰?br />
鏀規垚
var echkbox=document.createElement("input");
echkbox.setAttribute("type","checkbox");
echkbox.setAttribute("id","inputid");
echkbox.setAttribute("name","inputname");
echkbox.setAttribute("value","inputvalue");
var addhere=document.getElementById("someElementId");
addhere.appendChild(echkbox);
echkbox.setAttribute("checked","checked");
alert(document.getElementById("inputid").checked);
涓鍒噊k
radio鍚屾牱鏄繖縐嶆儏鍐點?/font>
涓轟簡闃叉緙撳瓨錛屽彲浠ュ湪欏甸潰鐨勯《绔坊鍔?/span> response.expires = -1
浣跨敤java鎻愪緵鐨勬柟娉曪紝鍦?/span>jsp鎴栬?/span>servlet涓兘鍙互 <% response.setheader("pragma","no-cache");
response.setheader("cache-control","no-cache"); response.setdateheader("expires", 0);
%>
浣跨敤NET鍦?/span>CS欏甸潰鍦?/span>page load涓妸榪欏彞鍔犱笂!
context.response.cache.setcacheability(httpcacheability.nocache);
浣跨敤html鏍囪錛屽涓嬮潰錛?/span> <head> <meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0">
</head>