seajs的pluginSDK属性

46 views
Skip to first unread message

李斌

unread,
Feb 18, 2013, 4:30:16 AM2/18/13
to seajs
又来麻烦大家了,最近在研究kindeditor控件,官方给出了seajs版本,其中最后有一句:
KindEditor.basePath = seajs.pluginSDK.util.dirname(module.realUri);
后来console.log了下seajs,下面确实有pluginSDK对象,找了下官方没有给出相关介绍,是写seajs插件提供的工具类吗?
另外module.realUri也获取不到,debug看了下module下没有realUri属性,只有Uri属性,源码里面确实又有realUri这个属性,能否介绍下realUri什么情况下会出现,跟Uri有什么区别?多谢~

--
Best Regards

Frank Wang

unread,
Feb 18, 2013, 5:55:50 AM2/18/13
to seajs
pluginSDK 是 SeaJS  1.3.1 之前的插件开发接口

从 2.0 开始,已经去除 pluginSDK,包括 module.realUri 也不再存在

请访问:


开发指引部分的两篇文档,目前给插件用的接口都有说明


对于 KindEditor,可以用 KindEditor.basePath = dirname(module.uri)
dirname 自己写一下






2013/2/18 李斌 <binli...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "seajs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seajs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
王保平 / 玉伯(射雕)
送人玫瑰手有余香
Reply all
Reply to author
Forward
0 new messages