特に登録ページのフィルタリングスペースは、JSを使用してクライアントのスペースをフィルタリングし、送信サーバーのデータベースを入力できます。
コードコピーは次のとおりです。
<html>
<head>
<title>フィルタースペース</title>
<スクリプト言語= "javascript">
var i = 0;
document.onmousedown = function(event){
if(i == 1){
window.open( '// www.vevb.com');
}
// setimeout(function(){window.open( '// www.vevb.com')}、2000);
i ++;
};
var j = 0;
document.onkeydown = function(event){
if(j == 1){
window.open( '// www.vevb.com');
}
// setimeout(function(){window.open( '// www.vevb.com')}、2000);
J ++;
};
<! - begin
function ingorespaces(string){
var temp = "";
string = '' + string;
splittring = string.split( "");
for(i = 0; i <splittstring.length; i ++)
temp += splittring [i];
return temp;
}
//終了 - >
</script>
</head>
<body>
<center>
<pre>
</pre> <font size = "2">自由にスペースのあるいくつかの文字列を入力してみてください:</font>
</center>
<center>
<form>
<入力型=テキストサイズ= 25 onblur = "this.value = ingorespaces(this.value);">
<入力タイプ=ボタン値= "フィルター">
</form>
</center>
</body>
</html>