1
我正在嘗試使用引導程序x-editable,如下面的代碼中所示。我得到的兩個元素最初顯示的還好吧,但是當我點擊其中任何我得到一個彈出說:無法獲得基本的引導程序x可編輯的工作
<div class="editable-loading"></div>
此外,以下錯誤記錄到控制檯:
[12:38:17.817] NS_ERROR_FAILURE: Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIDOMHTMLInputElement.setSelectionRange] @ http://localhost/test/bootstrap-editable/js/bootstrap-editable.js:854
我是什麼失蹤?
<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.css"/>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap-editable/css/bootstrap-editable.css"/>
<script src="bootstrap-editable/js/bootstrap-editable.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('a[data-role="editable"]').editable();
});
</script>
<a data-type="select" title="Select" data-role="editable" data-source="['one', 'two', 'three']"
data-placement="right" id="myid">Select test</a>
<a data-role="editable" title="Input" id="myid2" data-placement="right">Input test</a>