来源:未知 时间:2016-05-25 17:53 作者:xxadmin 阅读:次
[导读] 调用方法: functionchangeSize(){varwidth=parseInt($(#Width).val());varheight=parseInt($(#Height).val());$(#Demo).width(width).height(height);//updatescrollbars$(#Demo).perfectScrollbar(update);//orevenwithvanillaJS!Ps.update(document.g...
|
调用方法:function changeSize() {
var width = parseInt($("#Width").val());
var height = parseInt($("#Height").val());
$("#Demo").width(width).height(height);
// update scrollbars
$('#Demo').perfectScrollbar('update');
// or even with vanilla JS!
Ps.update(document.getElementById('Demo'));
}
$(function() {
$('#Demo').perfectScrollbar();
// with vanilla JS!
Ps.initialize(document.getElementById('Demo'));
}); |
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com