摘要:
Code Folding Settings,Xml Settings,CodeInsight settings,Error highlighting settings代码折叠设置,XML设置,CodeInsight设置,错误突出显示设置Code style schemes,Live templates,File templates代码风格的计划,现场模板,文件模板Color schemes配色方案Default project settings默认项目设置Deployment servers部署服务器File types文件类型General Settings常规设置Global librar 阅读全文
摘要:
今天无意中发现webstorm里加入了nginx服务器快捷启动,熟悉eclipse的大牛们应该用过用过tomcat快捷启动功能。首先打开setting,找到Plugins然后找到nginx插件,右键“download”下载成功以后会出现nginx设置界面,点击“new”,然后选择nginx的安装目录。下面是运行nginx。打开项目,找到图上设置。新建一个nginx server最后直接点击倒数第二张图上的那个绿色小箭头,直接运行nginx即可。 阅读全文
摘要:
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
摘要:
setInterval 1 var num = 0; 2 var max = 10; 3 var intervalId = null; 4 5 function incrementNumber() { 6 num++; 7 8 if (num == max) { 9 clearInterval(intervalId);10 console.log("Done");11 }12 }13 14 intervalId = setInterval(incrementNumber, 500);setTimeout 1 var num = 0; ... 阅读全文
摘要:
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
摘要:
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html;ch 阅读全文
摘要:
1 var element = document.createElement("div"); 2 element.className = "message"; 3 4 var textNode = document.createTextNode("Hello world!"); 5 element.appendChild(textNode); 6 7 document.body.appendChild(element); 8 9 var newNode = element.firstChild.splitText(5);10 cons 阅读全文
摘要:
1 var div = document.getElementById("myDiv");2 var comment = div.firstChild;3 console.log(comment.data);4 console.log(comment.nodeValue == comment.data); 阅读全文