摘要:
我们调试js的时候,特别别人写的项目,很难快速找到对应文件 谷歌浏览器提供了,很好的帮助 首先找到对应的html 然后鼠标放上去对应的事件 现在很多js文件都用了压缩,对应的,解压缩,js文件 阅读全文
摘要:
我们调试js的时候,特别别人写的项目,很难快速找到对应文件 谷歌浏览器提供了,很好的帮助 首先找到对应的html 然后鼠标放上去对应的事件 现在很多js文件都用了压缩,对应的,解压缩,js文件 阅读全文
摘要:
var mysql = require('mysql'); //获取数据库var db = mysql.createConnection({ host: 'localhost', //数据库地址 user: 'root', // 用户名 password: '123456', // 密码 datab 阅读全文
摘要:
var ejs = require('ejs'); //获取ejs包 app.engine('.html', ejs.__express);app.set('view engine', 'html'); //设置获取html 阅读全文
摘要:
<html> <head> <script type="application/x-javascript"> function draw() { var canvas = document.getElementById("canvas"); if (canvas.getContext) { var ctx = canvas.getContext("2d"); ctx.fillStyle = "rgb(200,0,0)"; ctx.fillRect (10, 10, 55, 50) 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文
摘要:
<style type="text/css">.ifile {position:absolute;opacity:0;filter:alpha(opacity=0);}</style><form method="post"><input type="file" name="file" id="file" size="20" class="ifile" onchange="upfile.value=this 阅读全文
摘要:
<script type="text/javascript">//工厂模式function person(name,age,add){ var o=new Object(); o.name=name; o.age=age; o.add=add; o.smay=function(){ alert(o.name); } return o; }var person1=person('xioawang',25,'北京');person1.smay();</script><script type="text/ja 阅读全文
摘要:
<script language="JavaScript"> function myrefresh() { window.location.reload(); } setTimeout('myrefresh()',5000); //指定1秒刷新一次 </script> 阅读全文
摘要:
<script type="text/javascript">function f1(){ var x=100; function f2(){ alert(++x); } return f2 }var f3=f1();f3();</script> 阅读全文
|