- /**
- * 该模块是微信、qq分享插件(持续完善中,目前只支持微信的朋友圈、微信好友分享)
- * @module share
- * @subtitle 分享组件
- */
-
- /**
- * 分享插件
- * @namespace cmp
- * @class share
- * @constructor
- * @param {Object} options 配置参数
- * @param {String} options.title 分享内容显示的标题
- * @param {String} options.text 分享内容显示的内容
- * @param {String} options.url 点击链接地址
- * @param {String} options.imgUrl 需要显示的图片地址
- * @param {Function} options.success 获取成功后的回调
- * @param {Function} options.error 错误的回调
- * @example
- * ```
- * <script>
- * cmp.share({
- * title:"这是一个分享",
- * text:"一大堆分享显示的内容文字",
- * url:"http://www.baidu.com",
- * imgUrl:"http://ddddd.png",
- * success:function(networkDetail){
- * //do something with networkDetail
- * }
- * error:function(error){}
- * });
- * </script>
- * ```
- */
-