ajax出来的HTML内容不能使用点击click
$('.btn_collect').on('click',function(){ var id = $(this).attr('item'); console.log(id) }) $(document).on('click','.btn_collect',function(){ var id = $(this).attr('item'); console.
$('.btn_collect').on('click',function(){ var id = $(this).attr('item'); console.log(id) }) $(document).on('click','.btn_collect',function(){ var id = $(this).attr('item'); console.
document.write("");
input 输入大于1的数(可以是整数或小数)oninput 和正则
去结算
$(".case_box").on("click",function(){} 使用document $(document).on('click','.case_box',function(){}
轮询 function reqs() { $.post("{:url('index/xcx_login_is')}",function(res){ if(res.result==1){ if(res.msg.code==1){ layer.msg(res.msg.msg); setTimeout(function(){ top.location.reload
$("#selectAll").click(function () {//全选 $("#playList :checkbox").attr("checked", true); }); $("#unSelect").click(function () {//全不选 $("#playList :checkbox").attr("checked", false);
禁止鼠标右键:oncontextmenu="return false"; 禁止选择:onselectstart="return false"; 禁止拖放:ondragstart="return false"; 禁止拷贝:oncopy=document.selection.empty() 。 禁止复制:oncopy = "return false"; 禁止保存
效果图: jQuery.cropper 是一款使用简单且功能强大的图片剪裁 jQuery 插件。该图片剪裁插件支持图片放大缩小,支持图片旋转,支持触摸屏设备,支持 canvas,并且支持跨浏览器使用。 官网:https://fengyuanchen.github.io/cropperjs/ cropper 免费 CDN https://cdn.bootcss
var zhengshu= {}; zhengshu.zhengshu1 = $("#zhengshu1").attr("class"); zhengshu.zhengshu2 = $("#zhengshu2").attr("class"); zhengshu= JSON.stringify(zhengshu); 便于ajax传值使用