基于jQuery封装的一些常用的Function
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
函数名: CMFun.draw(fn, list, count, container)
参数:
fn: 执行执行绘制下拉的函数
list: 绘制数据json数组 [{}, {}]
count: 绘制数据json数组长度
container: 分页Page所在Div的jQuery对象
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
函数名: CMFun.Hover.init(tid, eid, cfg)
参数:
tid:目标base对象的id
eid:悬浮浮层对象的id
cfg:json的配置参数,可选,{topFix: (Int), leftFix: (Int)}
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
函数名:$(xxx).mask() $(xxx).unmask()
参数:
extend扩展了jQ的$.fn的方法
$().mask(): 弹出层弹出
$().unmask(): 弹出层收起
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
函数名: Date .Format('yyyy-MM-dd hh:mm:ss q S')
参数:
yyyy:年份
MM:月份
dd:天数
hh:小时
mm:分钟
ss:秒钟
q:季度
S:millisecond
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆
函数名:CMFun.FormSubmit({})
参数:
url: Action的地址
method: POST/GET
target: _blank/_self
data: data数据格式为json格式
也可以将整个form 的html字符串传入,或者不包含form的html字符串也可以当data传入
☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆