函数定义:
function getStyleValue(text){
if (text){
return parseInt(text.replace(/px$/g, ''));
}else{
return 0;
}
}
函数调用:var a = getStyleValue(thisNOde.css('padding-top'));
函数定义:
function getStyleValue(text){
if (text){
return parseInt(text.replace(/px$/g, ''));
}else{
return 0;
}
}
函数调用:var a = getStyleValue(thisNOde.css('padding-top'));