1
我真的希望有人能夠幫助...我有雙倍和三倍和四重檢查Pixastic庫加載。Pixastic ColorAdjust類型錯誤未定義
這裏是我的HTML代碼:
在<head>
標籤:
<script src="pathto.../pixastic.js"></script>
<script src="pathto.../pixastic.effects.js"></script>
<script src="pathto.../pixastic.worker.js"></script>
在<body>
標籤:
<div id="pattern-div" class="">
<div id="preview-background-print"><img id="preview-image" src="/image.png"/></div>
</div>
這裏是jQuery的。我忽略了計算RGB偏移量的公式,因爲它們似乎不相關。但是讓我知道他們是否。 :)
$('#preview-image').pixastic('coloradjust',{
red : pixadjustR,
green : pixadjustG,
blue : pixadjustB
});
這是我得到的錯誤:
TypeError: $('#preview-image').pixastic is not a function. (In '$('#preview-image').pixastic('coloradjust',{
red : pixadjustR,
green : pixadjustG,
blue : pixadjustB
})', '$('#preview-image').pixastic' is undefined)`
(我自己也嘗試Pixastic.process(document.getElementById("preview-image"), "coloradjust"...
並得到Pixastic.process is not a function
等
謝謝你的幫助!我確實包含了它。我最終解決了我的問題,但我討厭說我忘記了我的所作所爲。當你嘗試1000件事,其中一件起作用時,這往往會發生(無論如何)。 – NYCjbd