Dojo版本兼容 [英] Dojo version compatibility

查看:104
本文介绍了Dojo版本兼容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始使用目前使用0.4版本的Web应用程序。
如何升级到最新版本1.5?
我不认为它向后兼容?
我会在js目录中创建一个子目录,将其称为v1.5,并使用引用新版本的新标签添加新代码?
那么,随着时间的推移,旧的代码重构使用新版本?

I started working on a web application that currently uses version 0.4. How would I go about upgrading to the latest version, 1.5? I don't think it's backward compatible? Would I make a sub-directory in the "js" dir, call it v1.5, and add new code using a new tag that references the new version? Then, over time, refactor the old code to use the new version?

推荐答案

批次从0.4变为当前版本(1.5)。以前在Dojo网站上有一些移植指南,但是他们似乎并不在那里。这绝对不是向后兼容的。

There are a lot of changes from 0.4 to the current version (1.5). There used to be some porting guides available on the Dojo site, but they don't seem to be there anymore. It's definitely not backwards compatible.

我并没有玩过两个版本的Dojo,但是如果它们一起加载,那么你提到的方法是你最好的选择 - 任何新的代码使用1.5,并重构旧代码,你走。

I haven't played with two versions of Dojo side by side, but if they load together then the method you mentioned is your best bet - any new code using 1.5, and refactor the old code as you go.

这篇关于Dojo版本兼容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆