(direction == "x" ? visualWidth : visualHeight) * proportion;帮我
var visualWidth=container.width();
var visualHeight=container.height();
function calculateDist(direction, proportion) {
return (direction == "x" ?
visualWidth : visualHeight) * proportion;
} |
免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。
版权声明:作者保留权利,不代表天盟立场。
|
|
|
|