LK.Shop.Web/Styles/Style1/JS/member.js
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function(){
/* 全选 */
$('.checkall').click(function(){
var _self = this;
$('.checkitem').each(function(){
if (!this.disabled)
{
$(this).attr('checked', _self.checked);
}
});
$('.checkall').attr('checked', this.checked);
});
/* 批量操作按钮 */
$('a[nc_type="batchbutton"]').click(function(){
/* 是否有选择 */
if($('.checkitem:checked').length == 0){ //没有选择
return false;
}
var _uri = $(this).attr('uri');
var _name = $(this).attr('name');
var handleResult = function(uri,name) {
/* 获取选中的项 */
var items = '';
$('.checkitem:checked').each(function(){
items += this.value + ',';
});
items = items.substr(0, (items.length - 1));
/* 将选中的项通过GET方式提交给指定的URI */
// window.location.href=uri + '&' + name + '=' + items;
ajaxget(uri + '&' + name + '=' + items);
return false;
}
if($(this).attr('confirm')){
showDialog($(this).attr('confirm'), 'confirm', '', function(){handleResult(_uri,_name)});
return false;
}
handleResult(_uri,_name);
});
/* 缩小大图片 */
$('.makesmall').each(function(){
makesmall(this, $(this).attr('max_width'), $(this).attr('max_height'));
});
$('.su_btn').click(function(){
if($(this).hasClass('close')){
$(this).parent().next('.su_block').css('display', '');
$(this).removeClass('close');
}
else{
$(this).addClass('close');
$(this).parent().next('.su_block').css('display', 'none');
}
});
$('*[nc_type="dialog"]').click(function(){
var id = $(this).attr('dialog_id');
var title = $(this).attr('dialog_title') ? $(this).attr('dialog_title') : '';
后面还有 181 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
