为了账号安全,请及时绑定邮箱和手机立即绑定

一个js在编辑器上的报错

一个js在编辑器上的报错

hhhzihao2 2017-03-28 10:08:19
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) 检查作为构造函数确认的函数不返回原始值。当调用新的,这个值将丢失,对象将返回。为了避免警告,您可以显式地指定函数返回类型英文翻译我看不懂。。。
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 4694 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信