获得地址栏的参数组成一个对象
12345678910var url = 'http://weibo.com/t2275025/home?topnav=1&wvr=5'; var sUrl = url.substr(url.indexOf("?") + 1, url.length); var l
12345678910var url = 'http://weibo.com/t2275025/home?topnav=1&wvr=5'; var sUrl = url.substr(url.indexOf("?") + 1, url.length); var l
1234function jsonp(res){console.log(res.name)}jsonp({"name":"joe"});//2 输出joe标记为2你可以放到任何域名下的xxx.js里xxx.php里xxx.do里、、、
在使用git的时候,我我们可能会遇到,位于仓库中的某些文件夹不需要提交,我们可以对其过滤这时候就用到.gitignore在仓库中新建一个.gitignore的文件。在window中创建这个文件可能会弹出请输入键名,可以在进入git仓库后输入touch .gitignore 就创建
运行结果12345678910111213141516171819202122 var name = "The Window"; var object = { name : "My Object", getNameFunc : function()
123456789101112function f1(){ var n=999; nAdd=function(){n+=1} function f2(){ alert(n); } retur
将数字和. 之外的清除 onkeyup='this.value=this.value.replace(/[^\d.]/gi,"")' qq:\’\d+\’和 qq:\’(\d+)\’的区别(()的用法)var str2=str.match(/q
123456789101112131415161718192021222324252627282930313233343536/*js的遍历json*/ window.onload=function(){ var dzTab = {
判断用户名是否存在1SELECT name FROM `user` WHERE name='$name' limit 1 判断登陆是否成功1select uid from user where username='$username' and password='$passwor
12345678<?php$con = mysql_connect(SAE_MYSQL_HOST_M.':'.SAE_MYSQL_PORT,SAE_MYSQL_USER,SAE_MYSQL_PASS);if(!$con){ die('could not conne
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1