• uni-app tree(树状) 组件


    先看效果:

    组件代码:

    1. <template>
    2. <view class="next-tree">
    3. <view class="next-tree-mask" :class="{'show':showTree}" @tap="_cancel"></view>
    4. <view class="next-tree-cnt" :class="{'show':showTree}">
    5. <view class="next-tree-bar">
    6. <view class="next-tree-bar-cancel" :style="{'color':cancelColor}" hover-class="hover-c" @tap="_cancel">取消</view>
    7. <view class="next-tree-bar-title" :style="{'color':titleColor}">{{title}}</view>
    8. <view class="next-tree-bar-confirm" :style="{'color':confirmColor}" hover-class="hover-c" @tap="_confirm">确定</view>
    9. </view>
    10. <view class="next-tree-view">
    11. <scroll-view class="next-tree-view-sc" :scroll-y="true">
    12. <block v-for="(item, index) in treeList" :key="index">
    13. <view class="next-tree-item" :style="[{
    14. paddingLeft: item.rank*15 + 'px',
    15. zIndex: item.rank*-1 +50
    16. }]"
    17. :class="{
    18. border: border === true,
    19. show: item.show,
    20. last: item.lastRank,
    21. showchild: item.showChild,
    22. open: item.open,
    23. }">
    24. <view class="next-tree-label" @tap.stop="_treeItemTap(item, index)">
    25. <image class="next-tree-icon" :src="item.lastRank ? lastIcon : item.showChild ? currentIcon : defaultIcon"></image>
    26. {{item.name}}
    27. </view>
    28. <view class="next-tree-check" @tap.stop="_treeItemSelect(item, index)" v-if="selectParent?true:item.lastRank">
    29. <view class="next-tree-check-yes" v-if="item.checked" :class="{'radio':!multiple}" :style="{'border-color':confirmColor, 'background-color':confirmColor}">
    30. <view class="next-tree-check-yes-b" :style="{'background-color':confirmColor}">
    31. <text class="icon-text"></text>
    32. </view>
    33. </view>
    34. <view class="next-tree-check-no" v-else :class="{'radio':!multiple}" :style="{'border-color':confirmColor}"></view>
    35. </view>
    36. </view>
    37. </block>
    38. </scroll-view>
    39. </view>
    40. </view>
    41. </view>
    42. </template>
    43. <script>
    44. export default {
    45. name: "next-tree",
    46. props: {
    47. treeData: {
    48. type: Array,
    49. default: function() {
    50. return []
    51. }
    52. },
    53. valueKey: {
    54. type: String,
    55. default: 'id'
    56. },
    57. labelKey: {
    58. type: String,
    59. default: 'label'
    60. },
    61. childrenKey: {
    62. type: String,
    63. default: 'children'
    64. },
    65. title: {
    66. type: String,
    67. default: ''
    68. },
    69. multiple: { // 是否可以多选
    70. type: Boolean,
    71. default: false
    72. // default: true
    73. },
    74. selectParent: { //是否可以选父级
    75. type: Boolean,
    76. default: false
    77. },
    78. foldAll: { //折叠时关闭所有已经打开的子集,再次打开时需要一级一级打开
    79. type: Boolean,
    80. default: false
    81. },
    82. confirmColor: { // 确定按钮颜色
    83. type: String,
    84. default: '#f9ae3d' // #f9ae3d
    85. },
    86. cancelColor: { // 取消按钮颜色
    87. type: String,
    88. default: '' // #757575
    89. },
    90. titleColor: { // 标题颜色
    91. type: String,
    92. default: '' // #757575
    93. },
    94. currentIcon: { // 展开时候的ic
    95. type: String,
    96. default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MEQ0QTM0MzQ1Q0RBMTFFOUE0MjY4NzI1Njc1RjI1ODIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MEQ0QTM0MzU1Q0RBMTFFOUE0MjY4NzI1Njc1RjI1ODIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowRDRBMzQzMjVDREExMUU5QTQyNjg3MjU2NzVGMjU4MiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowRDRBMzQzMzVDREExMUU5QTQyNjg3MjU2NzVGMjU4MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PidwepsAAAK0SURBVHja7JxbTsJAFIYHww7ciStgCeoGvGxAiOsgURegoL5720AXYLiIr0aJviq3Zx3PhIEnKG3ndtr+f3KixrSUj/ZjzjClIqUUiFm2gAAQAREQEUAEREAERAQQAREQAREBREAEREBEEqa67h9RFDWllDv0awWYlqlQHmu1WjMRRMoV1QFttA12y3xRtdNczq8EsE4/f8FumX2q77ROvNXk8UGMEKdUz6tYJHljaZAbuyUH+UR1to5BEohTuqwPCeS4pAA/qY6o/kyHOAMCeRK3owJnj+rH1jjxhqpVsstaebCz6TmnHWyXyY+xHjSBWBY/bvSgadtXBj9u9KCN3rnIfkzkQVsTEEX0Y2IP2oKo/HhMICcFAThUcwVZNGU6FdbX/XURzkbVF4+ybGhjPrFdgP66QdXNurGtSdk6Xdb9nAJ8oDo3OQlsQZzkdPw41ONBo6vI5scDefRjZg+6gpg3Pxp50CXEvPjR2IOuIXL3oxUPuobI3Y9WPOgDIlc/WvOgL4iL/vqFCcD7LH0xB4hj7cfQ/fWH9qCT+FhG0tN+DBk1PzjOM0SVllixcsBT1AvYc/kAPhc0hRg/3uvxoCgKRN9+dOrBUBB9+9GpB0NC9OVH5x4MDdG1H714kANEV3705kEOEBf9dcPi/lQnsuvLg1wgSu3Ha0v7Uh4MMgUXeuG71H407a+VBy9CPQkOdw+MtB+nGbd/D+FBbhBNxo9SjwcngJjNj0E9yBFiFj8G9SBXiGn8GNyDnCEm8SMLD3KHGOdHNh7kDjHOj2w8mAeIi/5arX+c6b/fxHz9oADEdGdjR/fXCw/OOB5oVfCOgnepz8IB14PMw03jCmTE+QBx5z0gAmKSqK9OUF+hcAeIhu/QYr4Qie8rjW83hhMBERARQAREQAREBBABERCLnH8BBgA+TQI7U4t53AAAAABJRU5ErkJggg=='
    97. },
    98. defaultIcon: { // 折叠时候的ic
    99. type: String,
    100. default: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFEAAABRCAYAAACqj0o2AAACE0lEQVR4Xu3c200DMRCF4XEltJAOkEugA+ggpUAHoQMqiFMCdEAJUMEiS4mEELlIO7bPOeN9i6K1rG/952myyea1WiCtXmEuYBPR4RBMxInoIOCwhOtJLKVszWyXc/5y2BvNEq6I+/3+kFK6M7OHnPM7jcLKjbZAvD/uaZtzflm5P4rbWyJWgDcze1LPuzVihfxUz7sH4ilJ2bx7Isrm3RtRMu8RiHJ5j0SUyXs0okTeCIj0eSMh0uaNhkiZNyIiXd7IiDR5oyNS5M2ACJ83EyJs3myIkHkzIsLlzYwIkzc7IkTeCojD81ZCHJa3GuKQvBURu+etjNgtb3XELnlHQGyedyTEZnlHQ2ySd0RE97wjI7rlHR3RJe+JeIrbLOecD6ePpZQ6W1kn2epo4MUrPOKyLN8ppYq1+y1VStncOjIdGnFZlo+U0uOtWOeOY2TE12Ouq//pEA7xXL7XfvcufR8K0Svfv6CREN3yDYfYIt9QiK3yjYTYLF95xB75SiP2ylcZsVu+cogj8pVCHJWvEuKwfOkREfKlRkTJlxkRJl86RMR8qRBR82VChM0XHpEhX2hElnyREWnyhUNkzBcKkTVfJETafIcjKuQ7FFEl35GIMvl2R1TMtyuiar49EWXzbY5oZpv/hibXTF2h3+s60FRKeT6+3TjMS3nrA3ZFRD8xrfY3ER1kJ+JEdBBwWGKeRAfEH1wS5WFZSDB/AAAAAElFTkSuQmCC'
    101. },
    102. lastIcon: { // 没有子集的ic
    103. type: String,
    104. default: ''
    105. },
    106. border: { // 是否有分割线
    107. type: Boolean,
    108. default: false
    109. },
    110. },
    111. data() {
    112. return {
    113. showTree: false,
    114. treeList: [],
    115. selectIndex: -1,
    116. childNums: [],
    117. rt:[],
    118. rtName:[]
    119. }
    120. },
    121. computed: {},
    122. methods: {
    123. _show() {
    124. this.showTree = true
    125. },
    126. _hide() {
    127. this.showTree = false
    128. },
    129. _cancel() {
    130. this._hide()
    131. this.$emit("cancel", '');
    132. },
    133. _confirm() {
    134. this.rt=[];
    135. this.rtName=[];
    136. // 处理所选数据
    137. this.treeList.forEach((item, i) => {
    138. if(item.id==100&&item.checked){
    139. return this.confirmEach(this.treeData)
    140. }
    141. if (item.checked&&item.parentId&&item.parentId!="100") {
    142. this.rt.push(item.id)
    143. this.rtName.push(item.name)
    144. }
    145. })
    146. this._hide()
    147. this.$emit("confirm", {id:this.rt,name:this.rtName});
    148. },
    149. confirmEach(list){
    150. list.forEach((item,index)=>{
    151. if(item.isDy){
    152. this.rtName.push(item.name)
    153. this.rt.push(item.id)
    154. }
    155. if(item.children&&item.children.length>0) this.confirmEach(item.children)
    156. })
    157. },
    158. //扁平化树结构
    159. _renderTreeList(list = [], rank = 0, parentId = [], parents = []) {
    160. list.forEach(item => {
    161. this.treeList.push({
    162. id: item[this.valueKey],
    163. name: item[this.labelKey],
    164. source: item,
    165. parentId, // 父级id数组
    166. parents, // 父级id数组
    167. rank, // 层级
    168. showChild: false, //子级是否显示
    169. open: false, //是否打开
    170. show: rank === 0, // 自身是否显示
    171. hideArr: [],
    172. orChecked: item.checked ? item.checked : false,
    173. checked: item.checked ? item.checked : false,
    174. })
    175. if (Array.isArray(item[this.childrenKey]) && item[this.childrenKey].length > 0) {
    176. // console.log(item)
    177. let parentid = [...parentId],
    178. parentArr = [...parents],
    179. childrenid = [];
    180. delete parentArr.children
    181. parentid.push(item[this.valueKey]);
    182. parentArr.push({
    183. [this.valueKey]: item[this.valueKey],
    184. [this.labelKey]: item[this.labelKey]
    185. })
    186. this._renderTreeList(item[this.childrenKey], rank + 1, parentid, parentArr);
    187. } else {
    188. this.treeList[this.treeList.length - 1].lastRank = true;
    189. }
    190. })
    191. },
    192. // 处理默认选择
    193. _defaultSelect() {
    194. this.treeList.forEach((v, i) => {
    195. if (v.checked) {
    196. this.treeList.forEach((v2, i2) => {
    197. if (v.parentId.toString().indexOf(v2.parentId.toString()) >= 0) {
    198. v2.show = true
    199. if (v.parentId.includes(v2.id)) {
    200. v2.showChild = true;
    201. v2.open = true;
    202. }
    203. }
    204. })
    205. }
    206. })
    207. },
    208. // 点击
    209. _treeItemTap(item, index) {
    210. if (item.lastRank === true) {
    211. //点击最后一级时触发事件
    212. this.treeList[index].checked = !this.treeList[index].checked
    213. this._fixMultiple(index)
    214. return;
    215. }
    216. let list = this.treeList;
    217. let id = item.id;
    218. item.showChild = !item.showChild;
    219. item.open = item.showChild ? true : !item.open;
    220. list.forEach((childItem, i) => {
    221. if (item.showChild === false) {
    222. //隐藏所有子级
    223. if (!childItem.parentId.includes(id)) {
    224. return;
    225. }
    226. if (!this.foldAll) {
    227. if (childItem.lastRank !== true && !childItem.open) {
    228. childItem.showChild = false;
    229. }
    230. // 为隐藏的内容添加一个标记
    231. if (childItem.show) {
    232. childItem.hideArr[item.rank] = id
    233. }
    234. } else {
    235. if (childItem.lastRank !== true) {
    236. childItem.showChild = false;
    237. }
    238. }
    239. childItem.show = false;
    240. } else {
    241. // 打开子集
    242. if (childItem.parentId[childItem.parentId.length - 1] === id) {
    243. childItem.show = true;
    244. }
    245. // 打开被隐藏的子集
    246. if (childItem.parentId.includes(id) && !this.foldAll) {
    247. // console.log(childItem.hideArr)
    248. if (childItem.hideArr[item.rank] === id) {
    249. childItem.show = true;
    250. if (childItem.open && childItem.showChild) {
    251. childItem.showChild = true
    252. } else {
    253. childItem.showChild = false
    254. }
    255. childItem.hideArr[item.rank] = null
    256. }
    257. }
    258. }
    259. })
    260. },
    261. _treeItemSelect(item, index) {
    262. this.treeList[index].checked = !this.treeList[index].checked
    263. // 选父级, 子级自动全选
    264. this.syncChecked(this.treeList, item.id, this.treeList[index].checked)
    265. if(item.rank > 0) {
    266. item.parentId.forEach((pid, indexP) => {
    267. const parent = this.treeList.filter(i => i.id === pid)
    268. const childNum = parent.length > 0 ? parent[0].childNum : 0
    269. if(this.childNums[pid] === undefined) {
    270. this.childNums[pid] = 1
    271. } else if(this.childNums[pid] < childNum) {
    272. this.childNums[pid]++
    273. }
    274. })
    275. //子级选择/选满/取消选择, 父级往上同步状态
    276. this.setAncestors(item.parentId, this.treeList[index].checked)
    277. }
    278. this._fixMultiple(index)
    279. },
    280. syncChecked (trees, pid, checked) {
    281. trees.forEach((item,index) => {
    282. if(item.parentId.includes(pid)) {
    283. this.treeList[index].checked = checked
    284. this.syncChecked(trees, item.id, checked)
    285. } else if(item.children !== undefined) {
    286. this.syncChecked(item.children, pid, checked)
    287. }
    288. })
    289. },
    290. setAncestors (pids, checked) {
    291. this.treeList.forEach((item,index) => {
    292. if(pids.includes(item.id)) {
    293. if(checked && this.childNums[item.id] !== undefined && item.childNum === this.childNums[item.id]) {
    294. // 子级全部选中, 父级才选中
    295. this.treeList[index].checked = true
    296. } else {
    297. this.treeList[index].checked = false
    298. }
    299. this.setAncestors(item.parentId, checked)
    300. }
    301. })
    302. },
    303. // _treeItemSelect(item, index) {
    304. // this.treeList[index].checked = !this.treeList[index].checked
    305. // this._fixMultiple(index)
    306. // },
    307. // 处理单选多选
    308. _fixMultiple(index) {
    309. if (!this.multiple) {
    310. // 如果是单选
    311. this.treeList.forEach((v, i) => {
    312. if (i != index) {
    313. this.treeList[i].checked = false
    314. } else {
    315. this.treeList[i].checked = true
    316. }
    317. })
    318. }
    319. },
    320. // 重置数据
    321. _reTreeList() {
    322. this.treeList.forEach((v, i) => {
    323. this.treeList[i].checked = v.orChecked
    324. })
    325. },
    326. _initTree(treeData = this.treeData){
    327. this.treeList = [];
    328. this._renderTreeList(treeData);
    329. this.$nextTick(() => {
    330. this._defaultSelect(treeData)
    331. })
    332. }
    333. },
    334. mounted() {
    335. console.log('----------next-tree组件完成挂载demo------------')
    336. this._initTree();
    337. this.$watch(() => this.treeData, (list) => {
    338. this._initTree(list);
    339. }, {deep: true, immediate: true})
    340. this.$watch(() => [this.multiple, this.selectParent], () => {
    341. if (this.treeData.length) {
    342. this._reTreeList();
    343. }
    344. }, {deep: true, immediate: true})
    345. }
    346. }
    347. </script>
    348. <style scoped>
    349. @import "./style.css";
    350. </style>

    1. .next-tree-mask {
    2. position: fixed;
    3. top: 0rpx;
    4. right: 0rpx;
    5. bottom: 0rpx;
    6. left: 0rpx;
    7. z-index: 9998;
    8. background-color: rgba(0, 0, 0, 0.6);
    9. opacity: 0;
    10. transition: all 0.3s ease;
    11. visibility: hidden;
    12. }
    13. .next-tree-mask.show {
    14. visibility: visible;
    15. opacity: 1;
    16. }
    17. .next-tree-cnt {
    18. position: fixed;
    19. top: 0rpx;
    20. right: 0rpx;
    21. bottom: 0rpx;
    22. left: 0rpx;
    23. z-index: 9999;
    24. top: 160rpx;
    25. transition: all 0.3s ease;
    26. transform: translateY(100%);
    27. }
    28. .next-tree-cnt.show {
    29. transform: translateY(0);
    30. }
    31. .next-tree-bar {
    32. background-color: #fff;
    33. height: 72rpx;
    34. padding-left: 20rpx;
    35. padding-right: 20rpx;
    36. display: flex;
    37. justify-content: space-between;
    38. align-items: center;
    39. box-sizing: border-box;
    40. border-bottom-width: 1rpx !important;
    41. border-bottom-style: solid;
    42. border-bottom-color: #f5f5f5;
    43. font-size: 32rpx;
    44. color: #757575;
    45. line-height: 1;
    46. }
    47. .next-tree-bar-confirm {
    48. color: #f9ae3d;
    49. }
    50. .next-tree-view {
    51. position: absolute;
    52. top: 0rpx;
    53. right: 0rpx;
    54. bottom: 0rpx;
    55. left: 0rpx;
    56. top: 72rpx;
    57. background-color: #fff;
    58. padding-top: 20rpx;
    59. padding-right: 20rpx;
    60. padding-bottom: 20rpx;
    61. padding-left: 20rpx;
    62. }
    63. .next-tree-view-sc {
    64. height: 100%;
    65. overflow: hidden;
    66. }
    67. .next-tree-item {
    68. display: flex;
    69. justify-content: space-between;
    70. align-items: center;
    71. font-size: 26rpx;
    72. color: #757575;
    73. line-height: 1;
    74. height: 0;
    75. opacity: 0;
    76. transition: 0.2s;
    77. position: relative;
    78. overflow: hidden;
    79. }
    80. .next-tree-item.show {
    81. height: 80rpx;
    82. opacity: 1;
    83. }
    84. .next-tree-item.showchild:before {
    85. transform: rotate(90deg);
    86. }
    87. .next-tree-item.border {
    88. border-bottom: 1rpx solid rgba(204,204,204,0.2);
    89. }
    90. .next-tree-item.last:before {
    91. opacity: 0;
    92. }
    93. .next-tree-icon {
    94. width: 26rpx;
    95. height: 26rpx;
    96. margin-right: 8rpx;
    97. }
    98. .next-tree-label {
    99. flex: 1;
    100. display: flex;
    101. align-items: center;
    102. height: 100%;
    103. line-height: 1.2;
    104. }
    105. .next-tree-check {
    106. width: 40px;
    107. height: 40px;
    108. display: flex;
    109. justify-content: center;
    110. align-items: center;
    111. }
    112. .next-tree-check-yes,
    113. .next-tree-check-no {
    114. width: 20px;
    115. height: 20px;
    116. border-top-left-radius: 20%;
    117. border-top-right-radius: 20%;
    118. border-bottom-right-radius: 20%;
    119. border-bottom-left-radius: 20%;
    120. border-top-width: 1rpx;
    121. border-left-width: 1rpx;
    122. border-bottom-width: 1rpx;
    123. border-right-width: 1rpx;
    124. border-style: solid;
    125. border-color: #f9ae3d;
    126. display: flex;
    127. justify-content: center;
    128. align-items: center;
    129. box-sizing: border-box;
    130. }
    131. .next-tree-check-yes-b {
    132. border-top-left-radius: 20%;
    133. border-top-right-radius: 20%;
    134. border-bottom-right-radius: 20%;
    135. border-bottom-left-radius: 20%;
    136. background-color: #f9ae3d;
    137. color: #fff;
    138. }
    139. .next-tree-check-yes-b .icon-text {
    140. font-size: 14px;
    141. font-weight: normal;
    142. font-family: uicon-iconfont;
    143. display: flex;
    144. flex-direction: row;
    145. align-items: center;
    146. }
    147. .next-tree-check .radio {
    148. border-top-left-radius: 50%;
    149. border-top-right-radius: 50%;
    150. border-bottom-right-radius: 50%;
    151. border-bottom-left-radius: 50%;
    152. }
    153. .next-tree-check .radio .next-tree-check-yes-b {
    154. border-top-left-radius: 50%;
    155. border-top-right-radius: 50%;
    156. border-bottom-right-radius: 50%;
    157. border-bottom-left-radius: 50%;
    158. }
    159. .hover-c {
    160. opacity: 0.6;
    161. }

     参数配置:

    dataListArray[]数据源
    idKeyStringid显示的主键key值
    nameKeyStringname显示的名字key值
    phoneKeyStringphone显示的电话key值
    imgKeyStringimg显示的头像key值
    radiusNumber4rpx头像圆角(rpx、px、%)
    showAvatarBooleantrue是否显示头像
    isInterlockBooleanfalse是否双向联动
    事件名说明类型回调参数
    itemclick菜单项item点击事件emitObject

     页面使用:

    1. <next-tree ref="qiantree" :selectParent="true" labelKey="name" valueKey="id"
    2. :multiple="true" :treeData="rangeList"
    3. @confirm="onconfirm" />
    4. import nextTree from '../components/next-tree/next-tree.vue'
    5. components: {
    6. nextTree
    7. },
    8. <next-tree ref="qiantree" :selectParent="true" labelKey="name" valueKey="id"
    9. :multiple="true" :treeData="rangeList"
    10. @confirm="onconfirm" />
    11. onconfirm(list) {
    12. console.log('选中项的数量列表list:', list)
    13. },

    数据格式 

  • 相关阅读:
    hive-学习微博日志分析
    MPI简谈
    如何用一行CSS实现10种现代布局
    大厂永恒敲门砖——Android 系统启动流程详解
    Unity ToLua热更框架使用教程(1)
    OSG如何生成帮助文档
    华为机试真题 Java 实现【模拟商场优惠打折】【2022.11 Q4 新题】
    如何找出最优的【SVC】核函数和参数值—以乳腺癌数据集为例
    在线等!!!新版考纲在国内通过率有多少?
    Java并发常见面试题(一)
  • 原文地址:https://blog.csdn.net/qq_42717015/article/details/131930530