为什么jshint导出指令不起作用?

时间:2015-01-12 16:45:46

标签: javascript jshint

在我的档案matte_design.js中:

/*exported matte_design_change */
/*exported matte_design_populate_types */

...


function matte_design_change(cid, selected_type, x, y, opening_width, opening_height)
{
  ...
}

...

function matte_design_populate_types()
{
  ...
}

这些功能用于其他文件。即使使用exported指令,我仍然会收到错误:'matte_design_change' is defined but never used'matte_design_populate_types' is defined but never used

我在这里做错了什么?

0 个答案:

没有答案