Scriptaculous不使用最新的Prototype

[英]Scriptaculous not working with the latest Prototype


This is a really weird problem that I have been having. When I download Scriptaculous from the official web site, script.aculo.us, bundled in the ZIP is prototype.js version 1.6.0.1. This works perfectly fine, I can follow along the wiki examples and begin learning. However, when I upgrade to prototype 1.6.0.2 (the latest version) from prototypejs.org everything breaks. I have read the documentation, named the new file prototype.js and nothing works. Any help is greatly appreciated! ­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­

這是我一直遇到的一個非常奇怪的問題。當我從官方網站Script.aculo.us下載Scriptaculous時,ZIP中捆綁的是prototype.js版本1.6.0.1。這完全沒問題,我可以按照wiki示例開始學習。但是,當我從prototypejs.org升級到原型1.6.0.2(最新版本)時,一切都會中斷。我已經閱讀了文檔,將新文件命名為prototype.js並且沒有任何效果。任何幫助是極大的贊賞!

2 个解决方案

#1


2  

scriptaculous is a JS library built on top of prototype. As such, they will be behind prototype in their release schedule. To ensure that scriptaculous works only use it with the prototype file that came in the download.

scriptaculous是一個建立在原型之上的JS庫。因此,他們將在發布時間表中落后於原型。要確保scriptaculous工作只使用下載中提供的原型文件。

Sure, given enough time and energy, you can find all the changed references from prototype 1.6.0.1 to 1.6.0.2 but is there really something in the newer version of prototype that you need today? If not, then just wait for the scripaculous to update.

當然,如果有足夠的時間和精力,你可以找到從原型1.6.0.1到1.6.0.2的所有變化的參考文獻,但是今天你需要的新版本的原型中是否真的有什么東西?如果沒有,那么只需等待scripaculous進行更新。

#2


0  

Get the latest script.aculo.us version driectly from their source code repository. The zipped version provided on their website is ancient. I'm running the latest script.aculo.us taken from their repo last week with the latest Prototype (1.6.0.3) without a glitch.

從源代碼存儲庫中獲取最新的script.aculo.us版本。他們網站上提供的壓縮版本很古老。我正在運行最新的script.aculo.us,上周從他們的回購中獲取了最新的Prototype(1.6.0.3)而沒有出現故障。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2008/09/19/729c9bd62eeb2bf907191ba088361eef.html



 
粤ICP备14056181号  © 2014-2020 ITdaan.com