我試圖用kendo編輯器創建圖片上傳。 我總是得到一個錯誤:kendo編輯器ReferenceError:沒有定義uid
ReferenceError: uid is not defined
...==E&&(E=1),g?(b&&(A+=-b),w&&(I+=-w),e=new Date(Date.UTC(F,D,E,A,I,H,N))):(e=new ...
kendo.web.min.js (Zeile 11)
我使用jQuery 1.8.3和kendoui.web.2013.1.319.open源
我的代碼如下:
<div id="example" class="k-content">
<textarea id="editor" rows="10" cols="30" name="reply-content"></textarea>
</div>
<script>
$(document).ready(function() {
$("#editor").kendoEditor({
imageBrowser: {
messages: {
dropFilesHere: "Drop files here"
},
transport: {
read: "/images/ImageBrowser/Read",
destroy: "/images/ImageBrowser/Destroy",
create: "/images/ImageBrowser/Create",
thumbnailUrl: "/images/ImageBrowser/Thumbnail",
uploadUrl: "/images/ImageBrowser/Upload",
imageUrl: "/images/ImageBrowser/Image?path={0}"
}
}
});
});
</script>
有人遇到同樣的問題?
相反,讀取預計根據「應用程序/ x-WWW的形式,進行了urlencoded」默認的contentType到[文檔](http://docs.telerik.com/kendo-ui/api/web/editor#configuration-imageBrowser.transport.read.contentType)。 – 2014-04-30 01:01:11