var swipe = Swipe($("#content"));
// 获取数据
var getValue = function(className) {
var $elem = $('' + className + '');
// 走路的路线坐标
return {
height: $elem.height(),
top: $elem.position().top
};
};
没懂为什么要每边要加两个单引号!!!求大佬指点
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
强转为字符串.
以这段代码的逻辑, 传入的一定为字符串, 所以转不转, 无所谓.
强转加一次就够了
好吧 学习了 强转为字符串
var str = '';
str += '';//转字符串