高性能 Socket 组件 HP-Socket v3.1.3 正式发布

HP-Socket 是一套通用的高性能 Windows Socket 组件,提供服务端组件(IOCP 模型)和客户端组件(Event Select 模型),广泛适用于 Windows 平台的 TCP/UDP 通信系统。HP-Socket 对通信层实现完全封装,上层应用不必关注通信层的任何细节;HP-Socket 提供基于事件通知模型的 API 接口,能非常简单高效地整合到各类应用程序中;另外,为了让大家能更方便的学习 HP-Socket,特此精心制作了功能测试示例(Test Echo)、性能测试示例(Test Echo-PFM)、PULL 模型测试示例(Test Echo-Pull) 和 UDP 测试示例(Test Echo-UDP),用户可以通过这几个测试示例入手,迅速掌握组件的设计思想和使用方法。

----------------------------------------------------------------

通用性

  • 通信组件的唯一职责就是接受和发送字节流,绝对不能参与上层协议解析等工作;
  • 与上层使用者解耦、互不依赖,组件与使用者通过操作接口和监听器接口进行交互,组件实现操作接口为上层提供操作方法;使用者实现监听器接口把自己注册为组件的 Listener,接收组件通知。因此,任何使用者只要实现了监听器接口都可以使用组件;另一方面,甚至可以自己重新写一个实现方式完全不同的组件实现给使用者调用,只要该组件遵从组件的操作接口,这也是 DIP 设计原则的体现。

可用性

  可用性对所有通用组件都是至关重要的,如果太难用还不如自己重头写一个来得方便。因此,组件的操作接口和监听器接口设计得尽量简单易用(通俗来说就是“傻瓜化”),这两个接口的主要方法均不超过 5 个。另外,组件完全封装了所有的底层 Socket 通信,上层应用看不到任何通信细节,不必也不能干预任何通信操作,Socket 连接被抽象为 Connection ID,该参数作为连接标识提供给上层应用识别不同的连接。

高性能

  作为底层的通用组件,性能问题是必须考虑的,绝对不能成为系统的瓶颈。而另一方面,从实际出发,根据客户端组件与服务端组件的性能要求采用不同的 Socket 模型。组件在设计上充分考虑了性能、现实使用情景、可用性和实现复杂性等因素,确保满足性能要求的同时又不会写得太复杂。做出以下两点设计决策:

http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016968
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016967
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016966
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016969
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016962
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016964
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016965
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016963
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016958
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016970
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016956
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016954
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016961
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016955
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016960
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016957
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016953
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016950
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016952
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016951
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016948
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016949
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016947
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016974
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016946
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016940
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016942
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016943
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016945
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016944
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016939
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016938
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016936
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016937
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016935
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016934
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016926
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016932
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016927
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016929
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016931
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016933
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016930
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016928
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016975
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016921
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016923
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016976
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016916
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016918
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016919
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016909
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016907
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016913
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016911
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016906
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016910
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016912
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016908
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016903
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016977
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016900
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016905
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016902
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016899
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016904
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016898
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016979
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016894
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016890
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016893
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016892
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016884
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016888
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016887
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016885
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016886
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016882
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016883
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016881
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016877
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016875
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016879
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016878
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016876
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016880
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016874
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016873
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016872
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016871
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016870
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016983
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016982
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016981
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354016980
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017089
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017088
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017087
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017085
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017086
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017294
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017293
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017295
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017292
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017291
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017289
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017290
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017288
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017287
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017286
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017284
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017283
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017282
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017285
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017279
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017281
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017280
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017278
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017277
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017274
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017276
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017275
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017273
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017270
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017271
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017272
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017267
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017268
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017269
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017265
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017266
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017263
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017264
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017262
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017260
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017261
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017259
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017258
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017257
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017255
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017256
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017254
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017252
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017251
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017253
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017250
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017249
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017248
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017245
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017246
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017247
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017244
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017240
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017241
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017242
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017243
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017237
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017236
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017239
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017238
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017234
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017235
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017233
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017232
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017228
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017230
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017231
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017229
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017227
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017224
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017225
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017226
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017223
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017222
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017218
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017220
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017216
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017217
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017215
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017213
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017214
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017212
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017210
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017211
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017209
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017208
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017205
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017207
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017204
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017206
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017203
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017202
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017201
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017200
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017198
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017199
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017197
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017196
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017297
http://www.kuaipan.cn/index.php?ac=file&oid=263084605354017299
http://home.aipai.com/25776941?action=album&id=1963573
http://home.aipai.com/25776941?action=album&id=1963574
http://home.aipai.com/25776941?action=album&id=1963576
http://home.aipai.com/25776941?action=album&id=1963578
http://home.aipai.com/25776941?action=album&id=1963580
http://home.aipai.com/25847627?action=album&id=1963594
http://home.aipai.com/25847627?action=album&id=1963596
http://home.aipai.com/25847627?action=album&id=1963604
http://home.aipai.com/25847627?action=album&id=1963606
http://home.aipai.com/25847627?action=album&id=1963609
http://home.aipai.com/25858713?action=album&id=1963623
http://home.aipai.com/25858713?action=album&id=1963626
http://home.aipai.com/25858713?action=album&id=1963629
http://home.aipai.com/25858713?action=album&id=1963636
http://home.aipai.com/25858713?action=album&id=1963638
http://home.aipai.com/25858713?action=album&id=1963642
http://home.aipai.com/25858713?action=album&id=1963644
http://home.aipai.com/25858713?action=album&id=1963670
http://home.aipai.com/25858713?action=album&id=1963672
http://home.aipai.com/25858713?action=album&id=1963675
http://home.aipai.com/25858713?action=album&id=1963676
http://home.aipai.com/25849227?action=album&id=1963680
http://home.aipai.com/25849227?action=album&id=1963683
http://home.aipai.com/25849227?action=album&id=1963685
http://home.aipai.com/25849227?action=album&id=1963688
http://home.aipai.com/25857338?action=album&id=1963693
http://home.aipai.com/25857338?action=album&id=1963696
http://home.aipai.com/25857338?action=album&id=1963698
http://home.aipai.com/25855916?action=album&id=1963700
http://home.aipai.com/25855916?action=album&id=1963704
http://home.aipai.com/25855916?action=album&id=1963710
http://home.aipai.com/25855916?action=album&id=1963713
http://kan.weibo.com/con/3699173380076158?_from=title
http://kan.weibo.com/con/3699173665288851?_from=title
http://kan.weibo.com/con/3699174575452908?_from=title
http://kan.weibo.com/con/3699175796378627?_from=title
http://kan.weibo.com/con/3699176072819582?_from=title
http://kan.weibo.com/con/3699176538387378?_from=title
http://kan.weibo.com/con/3699176743908296?_from=title
http://kan.weibo.com/con/3699177604123829?_from=title
http://kan.weibo.com/con/3699177952251103?_from=title
http://kan.weibo.com/con/3699178207720569?_from=title
http://kan.weibo.com/con/3699178409047186?_from=title
http://kan.weibo.com/con/3699178970565276?_from=title
http://kan.weibo.com/con/3699180254924321?_from=title
http://kan.weibo.com/con/3699180510393798?_from=title
http://kan.weibo.com/con/3699180690748900?_from=title
http://kan.weibo.com/con/3699181211225789?_from=title
http://kan.weibo.com/con/3699181466695282?_from=title
http://kan.weibo.com/con/3699181722930978?_from=title
http://kan.weibo.com/con/3699182406219575?_from=title
http://kan.weibo.com/con/3699184579252602?_from=title
http://kan.weibo.com/con/3699184881242555?_from=title
http://kan.weibo.com/con/3699185388370342?_from=title
http://kan.weibo.com/con/3699185636217449?_from=title
http://home.aipai.com/25776941?action=album&id=1959739
http://home.aipai.com/25776941?action=album&id=1959740
http://home.aipai.com/25776941?action=album&id=1959743
http://home.aipai.com/25776941?action=album&id=1959746
http://home.aipai.com/25776941?action=album&id=1959750
http://home.aipai.com/25776941?action=album&id=1959761
http://home.aipai.com/25776941?action=album&id=1959763
http://home.aipai.com/25776941?action=album&id=1959766
http://home.aipai.com/25776941?action=album&id=1959768
http://home.aipai.com/25776941?action=album&id=1959774
http://home.aipai.com/25776941?action=album&id=1959781
http://home.aipai.com/25776941?action=album&id=1959788
http://home.aipai.com/25776941?action=album&id=1959793
http://home.aipai.com/25776941?action=album&id=1959807
http://home.aipai.com/25776941?action=album&id=1959808
http://home.aipai.com/25776941?action=album&id=1959811
http://home.aipai.com/25776941?action=album&id=1959814
http://home.aipai.com/25776941?action=album&id=1959817
http://home.aipai.com/25776941?action=album&id=1959820
http://home.aipai.com/25776941?action=album&id=1959821
http://home.aipai.com/25776941?action=album&id=1959824
http://home.aipai.com/25776941?action=album&id=1959828
http://home.aipai.com/25776941?action=album&id=1959830
http://home.aipai.com/25776941?action=album&id=1959832
http://home.aipai.com/25776941?action=album&id=1959838
http://home.aipai.com/25847627?action=album&id=1959855
http://home.aipai.com/25847627?action=album&id=1959859
http://home.aipai.com/25847627?action=album&id=1959863
http://home.aipai.com/25847627?action=album&id=1959867
http://home.aipai.com/25847627?action=album&id=1959872
http://home.aipai.com/25847627?action=album&id=1959876
http://home.aipai.com/25847627?action=album&id=1959880
http://home.aipai.com/25847627?action=album&id=1959883
http://home.aipai.com/25847627?action=album&id=1959886
http://home.aipai.com/25847627?action=album&id=1959890
http://home.aipai.com/25847627?action=album&id=1959921
http://home.aipai.com/25847627?action=album&id=1959923
http://home.aipai.com/25847627?action=album&id=1959935
http://home.aipai.com/25847627?action=album&id=1959936
http://home.aipai.com/25847627?action=album&id=1959938
http://home.aipai.com/25847627?action=album&id=1959941
http://home.aipai.com/25847627?action=album&id=1959944
http://home.aipai.com/25847627?action=album&id=1959947
http://home.aipai.com/25847627?action=album&id=1959951
http://home.aipai.com/25847627?action=album&id=1959956
http://pan.baidu.com/share/link?shareid=3864060403&uk=2655002748
http://pan.baidu.com/share/link?shareid=3865871941&uk=2655002748
http://pan.baidu.com/share/link?shareid=3866919570&uk=2655002748
http://pan.baidu.com/share/link?shareid=3867869044&uk=2655002748
http://pan.baidu.com/share/link?shareid=3868821112&uk=2655002748
http://pan.baidu.com/share/link?shareid=3869842500&uk=2655002748
http://pan.baidu.com/share/link?shareid=3870779880&uk=2655002748
http://pan.baidu.com/share/link?shareid=3871742430&uk=2655002748
http://pan.baidu.com/share/link?shareid=3872796514&uk=2655002748
http://pan.baidu.com/share/link?shareid=3873830582&uk=2655002748
http://pan.baidu.com/share/link?shareid=3875112740&uk=2655002748
http://pan.baidu.com/share/link?shareid=3876138669&uk=2655002748
http://pan.baidu.com/share/link?shareid=3802709504&uk=2655002748
http://pan.baidu.com/share/link?shareid=3803959639&uk=2655002748
http://pan.baidu.com/share/link?shareid=3805034947&uk=2655002748
http://pan.baidu.com/share/link?shareid=3806240018&uk=2655002748
http://pan.baidu.com/share/link?shareid=3807316221&uk=2655002748
http://pan.baidu.com/share/link?shareid=3808344636&uk=2655002748
http://pan.baidu.com/share/link?shareid=3809308216&uk=2655002748
http://pan.baidu.com/share/link?shareid=298685186&uk=2655002748
http://pan.baidu.com/share/link?shareid=299884941&uk=2655002748
http://pan.baidu.com/share/link?shareid=301066921&uk=2655002748
http://pan.baidu.com/share/link?shareid=302018591&uk=2655002748
http://pan.baidu.com/share/link?shareid=303054153&uk=2655002748
http://pan.baidu.com/share/link?shareid=304118511&uk=2655002748
http://pan.baidu.com/share/link?shareid=305114231&uk=2655002748
http://pan.baidu.com/share/link?shareid=306151297&uk=2655002748
http://pan.baidu.com/share/link?shareid=307276591&uk=2655002748
http://pan.baidu.com/share/link?shareid=308544164&uk=2655002748
http://pan.baidu.com/share/link?shareid=309529283&uk=2655002748
http://pan.baidu.com/share/link?shareid=310530858&uk=2655002748
http://pan.baidu.com/share/link?shareid=311419113&uk=2655002748
http://pan.baidu.com/share/link?shareid=312328938&uk=2655002748
http://pan.baidu.com/share/link?shareid=313403582&uk=2655002748
http://pan.baidu.com/share/link?shareid=314306537&uk=2655002748
http://pan.baidu.com/share/link?shareid=315400304&uk=2655002748
http://pan.baidu.com/share/link?shareid=316321746&uk=2655002748
http://pan.baidu.com/share/link?shareid=317858028&uk=2655002748
http://pan.baidu.com/share/link?shareid=319098351&uk=2655002748
http://pan.baidu.com/share/link?shareid=437541523&uk=2655002748
http://pan.baidu.com/share/link?shareid=439651222&uk=2655002748
http://pan.baidu.com/share/link?shareid=440534669&uk=2655002748
http://pan.baidu.com/share/link?shareid=441425683&uk=2655002748
http://pan.baidu.com/share/link?shareid=442619421&uk=2655002748
http://pan.baidu.com/share/link?shareid=443573603&uk=2655002748
http://pan.baidu.com/share/link?shareid=444443927&uk=2655002748
http://pan.baidu.com/share/link?shareid=445376439&uk=2655002748
http://pan.baidu.com/share/link?shareid=446486931&uk=2655002748
http://pan.baidu.com/share/link?shareid=490902134&uk=792744988
http://pan.baidu.com/share/link?shareid=492232854&uk=792744988
http://pan.baidu.com/share/link?shareid=493367857&uk=792744988
http://pan.baidu.com/share/link?shareid=494383235&uk=792744988
http://pan.baidu.com/share/link?shareid=495387886&uk=792744988
http://pan.baidu.com/share/link?shareid=496344012&uk=792744988
http://pan.baidu.com/share/link?shareid=497563184&uk=792744988
http://pan.baidu.com/share/link?shareid=498631446&uk=792744988
http://pan.baidu.com/share/link?shareid=499731801&uk=792744988
http://pan.baidu.com/share/link?shareid=500785675&uk=792744988
http://pan.baidu.com/share/link?shareid=768283228&uk=792744988
http://pan.baidu.com/share/link?shareid=769390317&uk=792744988
http://pan.baidu.com/share/link?shareid=770306448&uk=792744988
http://pan.baidu.com/share/link?shareid=771381819&uk=792744988
http://pan.baidu.com/share/link?shareid=772402785&uk=792744988
http://pan.baidu.com/share/link?shareid=773334395&uk=792744988
http://pan.baidu.com/share/link?shareid=781272326&uk=792744988
http://pan.baidu.com/share/link?shareid=782468700&uk=792744988
http://pan.baidu.com/share/link?shareid=783527123&uk=792744988
http://pan.baidu.com/share/link?shareid=784454871&uk=792744988
http://pan.baidu.com/share/link?shareid=785404840&uk=792744988
http://pan.baidu.com/share/link?shareid=786437603&uk=792744988
http://pan.baidu.com/share/link?shareid=787658166&uk=792744988
http://pan.baidu.com/share/link?shareid=788582486&uk=792744988
http://pan.baidu.com/share/link?shareid=789901198&uk=792744988
http://pan.baidu.com/share/link?shareid=790913926&uk=792744988
http://pan.baidu.com/share/link?shareid=791889882&uk=792744988
http://pan.baidu.com/share/link?shareid=792888450&uk=792744988
http://pan.baidu.com/share/link?shareid=794042962&uk=792744988
http://pan.baidu.com/share/link?shareid=795056402&uk=792744988
http://pan.baidu.com/share/link?shareid=796163690&uk=792744988
http://pan.baidu.com/share/link?shareid=797405800&uk=792744988
http://pan.baidu.com/share/link?shareid=1349000186&uk=1463835933
http://pan.baidu.com/share/link?shareid=1351975292&uk=1463835933
http://pan.baidu.com/share/link?shareid=1353066658&uk=1463835933
http://pan.baidu.com/share/link?shareid=1354151985&uk=1463835933
http://pan.baidu.com/share/link?shareid=1355619492&uk=1463835933
http://pan.baidu.com/share/link?shareid=1356802132&uk=1463835933
http://pan.baidu.com/share/link?shareid=1357703496&uk=1463835933
http://pan.baidu.com/share/link?shareid=1358787404&uk=1463835933
http://pan.baidu.com/share/link?shareid=1359723444&uk=1463835933
http://pan.baidu.com/share/link?shareid=1360641981&uk=1463835933
http://pan.baidu.com/share/link?shareid=1361504923&uk=1463835933

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
引用\[1\]:根据提供的引用内容,版本3.1.3是vue-awesome-swiper的一个旧版本。引用\[2\]中提到了如何全局引入vue-awesome-swiper,并且需要引入swiper的CSS文件。引用\[3\]中展示了如何在Vue组件中使用vue-awesome-swiper来实现轮播图。根据您的需求,您想要在切换slide时更换app组件的背景。 为了实现这个需求,您可以在vue-awesome-swiper的slide切换事件中,通过修改app组件的背景样式来实现背景的更换。您可以在Vue组件中监听swiper的slideChange事件,并在事件回调函数中修改app组件的背景样式。 下面是一个示例代码,展示了如何实现这个需求: ```javascript <template> <div id="home-swiper"> <swiper ref="homeSwiper" :options="homeSwiperOptions" @slideChange="handleSlideChange"> <swiper-slide>...</swiper-slide> <swiper-slide>...</swiper-slide> </swiper> </div> </template> <script> import { swiper, swiperSlide } from "vue-awesome-swiper"; import "swiper/dist/css/swiper.css"; export default { components: { swiper, swiperSlide, }, methods: { handleSlideChange() { // 在这里修改app组件的背景样式 // 例如:this.$root.$el.style.background = "red"; }, }, }; </script> ``` 在handleSlideChange方法中,您可以根据需要修改app组件的背景样式。例如,您可以使用`this.$root.$el.style.background`来修改app组件的背景颜色。请根据您的具体需求进行相应的修改。 希望这个示例能够帮助您实现轮播图并更换app组件的背景。如果您有任何其他问题,请随时提问。 #### 引用[.reference_title] - *1* [【npm install vue-awesome-swiper@3.1.3 -S 】下载成功但是vue-awesome-swiper 用不了](https://blog.csdn.net/Sonnenlicht77/article/details/126951340)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [关于swiper的两种用法(swiper@4.0.7 vue-awesome-swiper@3.1.3)](https://blog.csdn.net/weixin_52259399/article/details/129066576)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [vue-awesome-swiper @3.1.3使用,记录一些bug及解决方法](https://blog.csdn.net/gegegegege12/article/details/121387965)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值