js禁用右键、禁止先择、禁用F5键、只能输入数字和小数点


document.oncontextmenu=new Function("event.returnValue=false;"); //禁止右键功能,单击右键将无任何反应
document.onselectstart=new Function("event.returnValue=false;"); //禁止先择,也就是无法复制*/
     
//禁用F5键代码
function document.onkeydown(){
     if(window.event.keyCode==116){
          window.event.keyCode = 0;
           window.event.returnValue = false;
      }
}

onKeyUp="this.value=this.value.replace(/[^d.]/g,'') " onafterpaste="this.value=this.value.replace(/[^d.]/g,'') "//只能输入数字和小数点
 



( ! ) Warning: Missing argument 1 for cwppos_show_review(), called in /data/www/enjoyphp/wp-content/themes/flat/content-single.php on line 29 and defined in /data/www/enjoyphp/wp-content/plugins/wp-product-review/includes/legacy.php on line 18
Call Stack
#TimeMemoryFunctionLocation
10.0000355192{main}( ).../index.php:0
20.0001355480require( '/data/www/enjoyphp/wp-blog-header.php' ).../index.php:17
30.167210152520require_once( '/data/www/enjoyphp/wp-includes/template-loader.php' ).../wp-blog-header.php:19
40.168310223664include( '/data/www/enjoyphp/wp-content/themes/flat/single.php' ).../template-loader.php:74
50.254910813000get_template_part( ).../single.php:5
60.254910813520locate_template( ).../general-template.php:167
70.254910813616load_template( ).../template.php:643
80.254910814000require( '/data/www/enjoyphp/wp-content/themes/flat/content-single.php' ).../template.php:686
90.259910799112cwppos_show_review( ).../content-single.php:29

发表评论

电子邮件地址不会被公开。 必填项已用*标注