我试图通过PHP在mysql上创建临时表,但是在浏览器中打开后,它看起来空了,请帮忙,非常感谢
<html>
<head>
<style>
#box {
height: 500px;
width: 500px;
border: 1px solid red;
display: block;
position: relative;
}
</style>
</head>
<body>
<form id='form'>
<fieldset id='box'>
<input id='key' type="text" />
</fieldset>
</form>
<script>
var ui = document.forms[0].elements;
var box = ui.box;
var key = ui.key;
box.addEventListener('keydown', closeBox);
function closeBox(e) {
e.target.style.display = 'none';
}
addListeners(key, 'input blur', triggerOnExit);
function triggerOnExit(e) {
console.log('called');
console.log(document.activeElement);
}
function addListeners(node, list, callBack) {
list.split(' ').forEach(function(e) {
node.addEventListener(e, callBack);
});
}
</script>
</body>
</html>