<script type="text/javascript">var flag = 0; var input = document.createElement('input'); var inputfile = document.createElement('input');
var inputbutton = documen
我正在尝试在Ruby on Rails/AngularJS站点内的职业页面上包含一个iframe,它在加载时动态注入到页面中。目前,iframe.js文件选择名为"jv-careersite“的div,并将iframe放入该div中。我的问题是,提供的javascript使用querySelector()并返回null。我已经将Javascript文件放在了公共/app/scripts中,并在application.html.erb中包含了一个指向