您需要在数据路径之前设置点。Docker-comose需要知道数据与docker-compose文件位于同一路径
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<section class="content container-fluid" id="quiz">
<button class="btn btn-primary" id="next">Next</button>
<button class="btn btn-info" id="prev">Prev</button>
<button class="btn btn-default" id="start">Start Over</button> //checkboxes inputs for the final results
<ul id="result-input" class="hide-input">
<li><input type="checkbox" name="answer" value="0">1</li>
<li><input type="checkbox" name="answer" value="1">2</li>
<li><input type="checkbox" name="answer" value="2">3</li>
<li><input type="checkbox" name="answer" value="3">4</li>
<li><input type="checkbox" name="answer" value="4">5</li>
<li><input type="checkbox" name="answer" value="5">6</li>
</ul>
</section>
,
错误是错误的卷的映射:
my_couchdb_data:/opt/couchdb/data
应该是
// here we add event handler for newly created checkboxes.
nextQuestion.find("input[type='checkbox']").on('change',function () {
if ($(this).is(":checked")) {
//add checkbox background when is checked
$(this).addClass("input-before");
//uncheck the checkbox if another checkbox is checked
$('#next').prop("disabled",false);
$('input.cb').not(this).prop('checked',false,function(){
//remove the background ...this is not working
$(this).removeClass("input-before");
})
} else {
$('#next').prop("disabled",true);
$(this).removeClass("input-before");
}
});
本文链接:https://www.f2er.com/2933575.html