小编Bal*_*nce的帖子

类型“ HTMLElement”上不存在“已检查”属性。

我在打字稿文件中有这段代码

 function debug_show_removed_flights() {
    if ($('.debug-window #show_removed_flights')[0].checked) {
      $('.fly-schedule-removed_reason').show();
      return $('.fly-schedule-remove').show();
    } else {
      $('.fly-schedule-removed_reason').hide();
      return $('.fly-schedule-remove').hide();
    }
  };
Run Code Online (Sandbox Code Playgroud)

但是在这一行中,我有错误。

if ($('.debug-window #show_removed_flights')[0].checked) {
Run Code Online (Sandbox Code Playgroud)

[ts]属性'checked'在类型'HTMLElement'上不存在。

我该如何解决?

javascript jquery typescript

6
推荐指数
1
解决办法
4813
查看次数

Hello#index中的Webpacker :: Manifest :: MissingEntryError(ruby on rails)

我已经下载了Honeybadger Webpack示例并运行bundle install

我在终端中没有任何错误,但是在启动服务器时得到以下信息:

Webpacker can't find application.js in /Users/admin/Documents/sourcemap/honeybadger-rails-webpacker-example/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. Webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your Webpack configuration is not creating a manifest.
Your manifest contains:
{
}
Run Code Online (Sandbox Code Playgroud)

适用于线 <%= javascript_pack_tag 'application' %>

我的问题在哪里?

ruby ruby-on-rails webpack

5
推荐指数
1
解决办法
2600
查看次数

标签 统计

javascript ×1

jquery ×1

ruby ×1

ruby-on-rails ×1

typescript ×1

webpack ×1