function Background(url, size){
b.style.background = url=='w' ? '#888786 url(/images/123/123.jpg) no-repeat' : '#888786 url(/images/qwe/qwe.png) no-repeat 50% -20%';
b.style.backgroundSize = size;
return true;
} Primitive value returned from constructor will be lost when called with
'new' 更少...
(Ctrl+F1)Checks that function recognized as constructor does not return primitive
values. When called with new , this value will be lost and object
will be returned instead. To avoid warnings, you can explicitly specify
function's return type with @return tag 从构造函数返回原始值将丢失时,称为'新'更少…(Ctrl + f1)
检查作为构造函数确认的函数不返回原始值。当调用新的,这个值将丢失,对象将返回。为了避免警告,您可以显式地指定函数返回类型英文翻译我看不懂。。。
添加回答
举报
0/150
提交
取消