浏览器调试报出了这么一个错误。这是什么意思?求大神和解决方法。 Not allowed to load local resource:

下面是代码,请大神指教!
<!DOCTYPE html>
<meta charset="gb2312"/>
<script>
var DB;
function initDatabase()
{
if(!window.openDatabase)
{alert('浏览器不支持WED SQL数据库.');}
else
{var dbName='mytb';
var dbVersion='1.0';
var dbDec='DEMO Database';
var dbSize=100000;
DB=openDatabase(dbName,dbVersion,dbDec,dbSize);
}
}
function createTable()
{
DB.transaction(function(tx){
tx.executeSql('create table if not exists USERINFO(USERNAME,PASSWORD,EMAIL,HOBBY)');
});
}
function register()
{
initDatabase();
createTable();
var username=document.getElementById("username").value;
var password=document.getElementById("password").value;
var email=document.getElementById("email").value;
var hobby=document.getElemexntById("hobby").value;
DB.transaction(function(tx){
tx.executeSql(
'select * from USERINFO where USERNAME=?',
[username],
function(tx,rs){
if(rs.rows.length>0)
{alert("该用户名已经存在,请使用其他用户名注册");}
else
{
DB.transaction(function(tx){
tx.executeSql(
'insert USERINFO(USERNAME,PASSWORD,EMAIL,HOBBY) values(?,?,?,?)',[username,password,email,hobby],
function(tx,error){
alert('注册失败');
}
);
});
}
}
);
});
}

function login()
{
initDatabase();
var username=document.getElementById("login_username").value;
var pssword=document.getElementById("login_password").value;
DB.transaction(function(tx){
tx.executeSql(
'select * from USERINFO where USERNAME=? and PASSWORD=?',
[username,password],
function(tx,rs){
if(rs.rows.length==0)
{alert("登陆失败");}
else
{
var msg='';
for(var i=0;i<rs.row.length;i++)
{
msg+='您好,'+rs.rows.item(i).USERNAME+
'\n\n您的EMAIL是:'+rs.rows.item(i).EMAIL+
'\n\n您的爱好是:'+rs.rows.item(i).HOBBY;
}
alert(msg);
}
}
);
});
}
</script>
<body>
<div>
<div style="float:left;border-style:outset;width:300px;height:300px">
<center>
<h2>注册新用户</h2>
<table>
<tr>
<td>用户名</td>
<td><input type="text" id="username"></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" id="password"></td>
</tr>
<tr>
<td>电子邮箱</td>
<td><input type="text" id="email"></td>
</tr>
<tr>
<td>兴趣爱好</td>
<td><input type="text" id="hobby"></td>
</tr>
<tr>
<td colspan="2" align="right">
<input type="button" value="注册新用户" onclick="register()"/>
</td>
</tr>
</table>
</center>
</div>
<div style="float:left;border-style:outset;margin-left:30px;width:300px;height:300px">
<center>
<h2>
用户登录
</h2>
<table>
<tr>
<td>用户名</td>
<td><input type="text" id="login_username"/></td>
</tr>
<tr>
<td>密码</td>
<td><input type="pasword" id="login_password"></td>
</tr>
<tr>
<td colspan="2" align="right"></td>
<input type="button" value="用户登录" onclick="login()"/>
</td>
</tr>
</table>
</center>
</div>
</div>
</body>
</html>

我这里没有的php默认递归的次数不能超过100次,(实际计算的时候,$num不能大于97),当然这个值是可以另外设置的。追问

答非所问,来骗财富值的

温馨提示:答案为网友推荐,仅供参考
相似回答