小编ste*_*eve的帖子

用&&​​返回

用&&​​返回值是什么意思?

else if (document.defaultView && document.defaultView.getComputedStyle) {

    // It uses the traditional ' text-align' style of rule writing, 
    // instead of textAlign
    name = name.replace(/([A-Z]) /g, " -$1" );
    name = name.toLowerCase();
    // Get the style object and get the value of the property (if it exists)
    var s = document.defaultView.getComputedStyle(elem, " ") ;
    return s && s.getPropertyValue(name) ;
Run Code Online (Sandbox Code Playgroud)

javascript return operators

27
推荐指数
3
解决办法
1万
查看次数

标签 统计

javascript ×1

operators ×1

return ×1