米斯达
IP:
46关注数
20粉丝数
58获得的赞
工作年
编辑资料
链接我:

创作·58

全部
问答
动态
项目
学习
专栏
米斯达

如何约束entity中的属性只能是特定的某些值?

如题,比如gender,只能是男/女/未知,比如状态,只能是0/1,这个要如何约束?是在Java层面约束还是mysql层面约束?
8
1
0
浏览量407
米斯达

安卓手机可以和巡更系统的巡更点通信吗?

淘宝上看到巡更系统的巡更点用的RFID射频技术,安卓手机可以开发APP识别这种巡更点设备吗?
11
1
0
浏览量264
米斯达

前端 keydown 和 keyup 返回的事件对象属性不一致?

可以参考如下链接 * "https://stackoverflow.com/questions/11030532/keypress-and-keyup-why-is-the-keycode-different" (https://link.segmentfault.com/?enc=i%2BY6eoOcO8btbn1VrSh1wQ%3D%3D.DHGmLzmB%2B%2F9su8Abwzm0IIY0HUxfoLV9AGwKPaKXa%2BAMUIbqgb8qTpIYXKc30hZdaVq7mBV%2BXpKS2dQwaHzVCpLGErlgmkYwYX%2B4RoRs6Tfu6fB7ntw26bqvwroI3tYd) * "https://unixpapa.com/js/key.html" (https://link.segmentfault.com/?enc=MpcuvIzWV1kygUqazDRQiQ%3D%3D.sdvJ1YeG3ysIORhFPn1ZA5yjP9S4t8jwlXQGaSqv0DJQUACMyjn4jvZ1zHXAc7xV)
0
0
0
浏览量0
米斯达

VChart如何实现类似ECharts的profile 效果?

«"https://visactor.io/vchart/demo/bar-chart/stack-percentage-> ba..." (https://link.segmentfault.com/?enc=zT4gkKDt6P%2BhgL6QiJu9Mw%3D%3D.0PEnvWhXN2WbH30WlsdEkQHoYyQCmTUY%2F57vKYGRKUykQ3gKxOVZPhgvyPPa8aa2aexBQrLCX3jK9RiBkFgquiYVQG8B37V8Vs3EFXtMz20%3D) ![image.png](https://wmprod.oss-cn-> shanghai.aliyuncs.com/images/20250109/70f7017b27904b70495dc6771ef13814.png)»
0
0
0
浏览量0
米斯达

为什么这段HTML打开的网页会一直刷新?

我是前端萌新。下面这段代码打开网页后会一直刷新: var location = window.location; 如果把 "var location = window.location;" 注释了就不会一直刷新网页了。 到底是什么问题?
10
1
0
浏览量326
米斯达

折线图和柱状图一起展示的那种,我的数据很多,x轴是日期,展示了部分 ,鼠标放到图上会展示数据,但是柱状图是所有的数据都展示,使得每个柱子都特别窄,这种应该怎么处理呢?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20250109/3fa39976e0ec006573828680d97dc702.png)
14
1
0
浏览量299
米斯达

[AMH] 建议对AMEM(异常监控与提醒)功能进行升级?

微信那边是删除了很多信息,原先有IP标题,消息备注都删除了,主消息也限制2、30个字。 可以去amh官网授权页面给授权加备注信息(这个备注会在消息末尾显示) 个别消息超过字数限制的,点消息可以看到具体哪个IP。
0
0
0
浏览量0
米斯达

求大佬帮忙搞个bat处理txt里的内容?

听取楼下的改进版本: @echo off setlocal enabledelayedexpansion :: 设置文件夹路径 set "folderPath=your_folder_path" :: 遍历文件夹里的所有 txt 文件 for %%F in (%folderPath%\*.txt) do ( set "inputFile=%%F" set "outputFile=%%F_temp.txt" :: 第一步:用正则表达式限制每行的字符数并添加新行 powershell -Command "(Get-Content '!inputFile!') -replace '(.{6,18}[,。:!?]|.{16})', '$1`n' | Set-Content '!outputFile!'" :: 第二步:替换特定字符为空 powershell -Command "(Get-Content '!outputFile!') -replace '[,。!]', '' | Set-Content '!outputFile!'" :: 第三步:移除空行 powershell -Command "(Get-Content '!outputFile!') | ? {$_ -ne ''} | Set-Content '!outputFile!'" :: 替换原文件 move /Y "!outputFile!" "!inputFile!" echo 文件 %%F 处理完成! ) echo 所有文件处理完成! pause 原方法: 写一个批处理脚本(.bat文件) @echo off setlocal enabledelayedexpansion :: 设置输入和输出文件路径 set "inputFile=your_input_file.txt" set "outputFile=your_output_file.txt" :: 第一步:用正则表达式限制每行的字符数并添加新行 powershell -Command "(Get-Content '%inputFile%') -replace '(.{6,18}[,。:!?]|.{16})', '$1`n' | Set-Content '%outputFile%'" :: 第二步:替换特定字符为空 powershell -Command "(Get-Content '%outputFile%') -replace '[,。!]', '' | Set-Content '%outputFile%'" :: 第三步:移除空行 powershell -Command "(Get-Content '%outputFile%') | ? {$_ -ne ''} | Set-Content '%outputFile%'" echo 文件处理完成! pause 然后你可以拖你的 txt 文件到这个 .bat 文件上来处理,把 your_input_file.txt 和 your_output_file.txt 替换成你的输入和输出文件路径就行。
0
0
0
浏览量0
米斯达

python+cython+pyav 如何构建一个包含第三方动态链接库的 wheel 包?

答案,需要使用 auditwheel、delocate 这样的工具 参考: * "python 第三方包安装路径 site-packages 下面的以 .libs 结尾的路径是干嘛的?" (https://segmentfault.com/a/1190000044200274) * "How to build and distribute a Python/Cython package that depends on third party libFoo.so" (https://link.segmentfault.com/?enc=ZFgOc3rzBVLHf1zCY1LuiQ%3D%3D.3PtcgBn9u%2Bt30NM6M2iD7d4Y%2FeDfaKJHA%2BOBuQVCXLAt%2BKLDW04I2%2FcRj6BCkiQBeuub40rmhCV%2FINIFqk5yUqvenbx75fmYXXgicfRskshcPEteJsgfkNIlH%2BFcrN9l18k%2BDNpQMV7oKGgrdcdLKwFY4xdVzgw7URz4WgSnBuo%3D) * "how to build whl with numpy.libs" (https://link.segmentfault.com/?enc=pCu83Pr6TRPPg4QGYqwPeQ%3D%3D.k8p%2B7OFbPy0yFpekV5lylsNhfc4sgHtneKPXRn3Jj77m6nfAhJhxA2bZmraf56Bf) 在 linux 存储这些第四方动态链接库,一般都是放在第三方包同级的 xxx.libs 文件夹下面 但是好像不也全是这样,比如 linux 下的 pandas 包,是放到 "pandas/_libs/" 下面的 ─➤ ll /home/pon/.local/share/virtualenvs/svddb_testing-xLs9aDku/lib/python3.10/site-packages/pandas/_libs/ inode Permissions Links Size Blocks User Group Date Modified Name 17045879 .rw-rw-r-- 1 323 8 pon pon 12 2月 23:52 __init__.py 17045986 drwxrwxr-x 2 - - pon pon 12 2月 23:52 __pycache__ 17045814 .rwxrwxr-x 1 2.0M 3992 pon pon 12 2月 23:52 algos.cpython-310-x86_64-linux-gnu.so 17045831 .rw-rw-r-- 1 440 8 pon pon 12 2月 23:52 algos.pxd 17045877 .rw-rw-r-- 1 15k 32 pon pon 12 2月 23:52 algos.pyi 17045810 .rw-rw-r-- 1 51k 104 pon pon 12 2月 23:52 algos.pyx 17045871 .rw-rw-r-- 1 2.3k 8 pon pon 12 2月 23:52 algos_common_helper.pxi.in 17045863 .rw-rw-r-- 1 6.1k 16 pon pon 12 2月 23:52 algos_take_helper.pxi.in 17045883 .rwxrwxr-x 1 93k 184 pon pon 12 2月 23:52 arrays.cpython-310-x86_64-linux-gnu.so 17045866 .rw-rw-r-- 1 233 8 pon pon 12 2月 23:52 arrays.pxd 17045811 .rw-rw-r-- 1 940 8 pon pon 12 2月 23:52 arrays.pyi 17045808 .rw-rw-r-- 1 5.9k 16 pon pon 12 2月 23:52 arrays.pyx 17045812 .rw-rw-r-- 1 510 8 pon pon 12 2月 23:52 dtypes.pxd 17045874 .rwxrwxr-x 1 2.0M 3952 pon pon 12 2月 23:52 groupby.cpython-310-x86_64-linux-gnu.so 17045829 .rw-rw-r-- 1 6.2k 16 pon pon 12 2月 23:52 groupby.pyi 17045882 .rw-rw-r-- 1 56k 112 pon pon 12 2月 23:52 groupby.pyx 17045826 .rwxrwxr-x 1 192k 376 pon pon 12 2月 23:52 hashing.cpython-310-x86_64-linux-gnu.so 17045841 .rw-rw-r-- 1 181 8 pon pon 12 2月 23:52 hashing.pyi 17045846 .rw-rw-r-- 1 4.8k 16 pon pon 12 2月 23:52 hashing.pyx 17045809 .rwxrwxr-x 1 1.6M 3104 pon pon 12 2月 23:52 hashtable.cpython-310-x86_64-linux-gnu.so 17045845 .rw-rw-r-- 1 3.2k 8 pon pon 12 2月 23:52 hashtable.pxd 17045844 .rw-rw-r-- 1 6.1k 16 pon pon 12 2月 23:52 hashtable.pyi 17045803 .rw-rw-r-- 1 4.6k 16 pon pon 12 2月 23:52 hashtable.pyx 17045857 .rw-rw-r-- 1 48k 96 pon pon 12 2月 23:52 hashtable_class_helper.pxi.in 17045825 .rw-rw-r-- 1 14k 32 pon pon 12 2月 23:52 hashtable_func_helper.pxi.in 17045828 .rwxrwxr-x 1 628k 1232 pon pon 12 2月 23:52 index.cpython-310-x86_64-linux-gnu.so 17045878 .rw-rw-r-- 1 3.1k 8 pon pon 12 2月 23:52 index.pyi 17045800 .rw-rw-r-- 1 34k 72 pon pon 12 2月 23:52 index.pyx 17045869 .rw-rw-r-- 1 2.0k 8 pon pon 12 2月 23:52 index_class_helper.pxi.in 17045870 .rwxrwxr-x 1 50k 104 pon pon 12 2月 23:52 indexing.cpython-310-x86_64-linux-gnu.so 17045819 .rw-rw-r-- 1 427 8 pon pon 12 2月 23:52 indexing.pyi 17045848 .rw-rw-r-- 1 778 8 pon pon 12 2月 23:52 indexing.pyx 17045833 .rwxrwxr-x 1 351k 688 pon pon 12 2月 23:52 internals.cpython-310-x86_64-linux-gnu.so 17045852 .rw-rw-r-- 1 2.4k 8 pon pon 12 2月 23:52 internals.pyi 17045858 .rw-rw-r-- 1 24k 48 pon pon 12 2月 23:52 internals.pyx 17045862 .rwxrwxr-x 1 1.4M 2672 pon pon 12 2月 23:52 interval.cpython-310-x86_64-linux-gnu.so 17045853 .rw-rw-r-- 1 5.4k 16 pon pon 12 2月 23:52 interval.pyi 17045820 .rw-rw-r-- 1 18k 40 pon pon 12 2月 23:52 interval.pyx 17045835 .rw-rw-r-- 1 15k 32 pon pon 12 2月 23:52 intervaltree.pxi.in 17045815 .rwxrwxr-x 1 2.5M 4904 pon pon 12 2月 23:52 join.cpython-310-x86_64-linux-gnu.so 17045807 .rw-rw-r-- 1 2.6k 8 pon pon 12 2月 23:52 join.pyi 17045851 .rw-rw-r-- 1 28k 56 pon pon 12 2月 23:52 join.pyx 17045832 .rwxrwxr-x 1 94k 184 pon pon 12 2月 23:52 json.cpython-310-x86_64-linux-gnu.so 17045842 .rw-rw-r-- 1 484 8 pon pon 12 2月 23:52 json.pyi 17045864 .rw-rw-r-- 1 3.8k 8 pon pon 12 2月 23:52 khash.pxd 17045813 .rw-rw-r-- 1 1.4k 8 pon pon 12 2月 23:52 khash_for_primitive_helper.pxi.in 17045801 .rwxrwxr-x 1 702k 1376 pon pon 12 2月 23:52 lib.cpython-310-x86_64-linux-gnu.so 17045849 .rw-rw-r-- 1 139 8 pon pon 12 2月 23:52 lib.pxd 17045837 .rw-rw-r-- 1 7.7k 16 pon pon 12 2月 23:52 lib.pyi 17045821 .rw-rw-r-- 1 92k 184 pon pon 12 2月 23:52 lib.pyx 17045805 .rwxrwxr-x 1 193k 384 pon pon 12 2月 23:52 missing.cpython-310-x86_64-linux-gnu.so 17045824 .rw-rw-r-- 1 408 8 pon pon 12 2月 23:52 missing.pxd 17045872 .rw-rw-r-- 1 675 8 pon pon 12 2月 23:52 missing.pyi 17045834 .rw-rw-r-- 1 14k 32 pon pon 12 2月 23:52 missing.pyx 17045868 .rwxrwxr-x 1 240k 472 pon pon 12 2月 23:52 ops.cpython-310-x86_64-linux-gnu.so 17045855 .rw-rw-r-- 1 1.3k 8 pon pon 12 2月 23:52 ops.pyi 17045850 .rw-rw-r-- 1 7.8k 16 pon pon 12 2月 23:52 ops.pyx 17045802 .rwxrwxr-x 1 61k 120 pon pon 12 2月 23:52 ops_dispatch.cpython-310-x86_64-linux-gnu.so 17045817 .rw-rw-r-- 1 124 8 pon pon 12 2月 23:52 ops_dispatch.pyi 17045839 .rw-rw-r-- 1 2.6k 8 pon pon 12 2月 23:52 ops_dispatch.pyx 17045822 .rwxrwxr-x 1 543k 1064 pon pon 12 2月 23:52 parsers.cpython-310-x86_64-linux-gnu.so 17045830 .rw-rw-r-- 1 2.2k 8 pon pon 12 2月 23:52 parsers.pyi 17045818 .rw-rw-r-- 1 70k 136 pon pon 12 2月 23:52 parsers.pyx 17045816 .rwxrwxr-x 1 63k 128 pon pon 12 2月 23:52 properties.cpython-310-x86_64-linux-gnu.so 17045806 .rw-rw-r-- 1 718 8 pon pon 12 2月 23:52 properties.pyi 17045881 .rw-rw-r-- 1 1.6k 8 pon pon 12 2月 23:52 properties.pyx 17045867 .rwxrwxr-x 1 32k 64 pon pon 12 2月 23:52 reduction.cpython-310-x86_64-linux-gnu.so 17045859 .rw-rw-r-- 1 214 8 pon pon 12 2月 23:52 reduction.pyi 17045838 .rw-rw-r-- 1 1.1k 8 pon pon 12 2月 23:52 reduction.pyx 17045827 .rwxrwxr-x 1 272k 536 pon pon 12 2月 23:52 reshape.cpython-310-x86_64-linux-gnu.so 17045873 .rw-rw-r-- 1 419 8 pon pon 12 2月 23:52 reshape.pyi 17045875 .rw-rw-r-- 1 3.4k 8 pon pon 12 2月 23:52 reshape.pyx 17045843 .rwxrwxr-x 1 870k 1704 pon pon 12 2月 23:52 sparse.cpython-310-x86_64-linux-gnu.so 17045856 .rw-rw-r-- 1 1.4k 8 pon pon 12 2月 23:52 sparse.pyi 17045884 .rw-rw-r-- 1 21k 48 pon pon 12 2月 23:52 sparse.pyx 17045804 .rw-rw-r-- 1 9.4k 24 pon pon 12 2月 23:52 sparse_op_helper.pxi.in 17045823 .rwxrwxr-x 1 93k 184 pon pon 12 2月 23:52 testing.cpython-310-x86_64-linux-gnu.so 17045861 .rw-rw-r-- 1 243 8 pon pon 12 2月 23:52 testing.pyi 17045847 .rw-rw-r-- 1 5.9k 16 pon pon 12 2月 23:52 testing.pyx 17045840 .rwxrwxr-x 1 331k 648 pon pon 12 2月 23:52 tslib.cpython-310-x86_64-linux-gnu.so 17045865 .rw-rw-r-- 1 766 8 pon pon 12 2月 23:52 tslib.pyi 17045854 .rw-rw-r-- 1 29k 64 pon pon 12 2月 23:52 tslib.pyx 17045885 drwxrwxr-x 3 - - pon pon 12 2月 23:52 tslibs 17045880 .rw-rw-r-- 1 272 8 pon pon 12 2月 23:52 util.pxd 17045948 drwxrwxr-x 3 - - pon pon 12 2月 23:52 window 17045836 .rwxrwxr-x 1 221k 432 pon pon 12 2月 23:52 writers.cpython-310-x86_64-linux-gnu.so 17045876 .rw-rw-r-- 1 543 8 pon pon 12 2月 23:52 writers.pyi 17045860 .rw-rw-r-- 1 4.5k 16 pon pon 12 2月 23:52 writers.pyx *** 好了,回答问题本身 我一开始是以 pyav 为切入点,但是 pyav 的 github 的仓库中,并没有提供任何线索来告诉我,这些 libav 相关的第四方依赖是怎么进入 wheel 文件的 但是我发现还有其他库也是这样实现的 (svddb_sdk) ╭─pon@amd5700g ~/.local/share/virtualenvs/svddb_sdk-oJGZEtXx/lib/python3.10/site-packages ╰─➤ ll | grep .libs 17056431 drwxrwxr-x 2 - - pon pon 12 2月 23:56 av.libs 17060238 drwxrwxr-x 2 - - pon pon 12 2月 23:56 numpy.libs 17073792 drwxrwxr-x 2 - - pon pon 12 2月 23:56 opencv_python.libs 17060002 drwxrwxr-x 2 - - pon pon 12 2月 23:56 Pillow.libs 17182651 drwxrwxr-x 2 - - pon pon 12 2月 23:56 torchvision.libs 所以,可以从 numpy、Pillow 入手研究也可以 (未完待续) *** 所以,我们正常执行 pyav 的编译之后 «git clone git@github.com:PyAV-Org/PyAV cd PyAV source scripts/activate.sh # Either install the testing dependencies: pip install --upgrade -r tests/requirements.txt # or have it all, including FFmpeg, built/installed for you: ./scripts/build-deps # Build PyAV. make » 在执行 "python setup.py sdist bdist_wheel" 生成对应的 wheel 文件,比如生成 "dist/av-10.0.0-cp310-cp310-linux_x86_64.whl" 然后使用 "编译 pyav 成 wheel 并使用 auditwheel 固化动态链接库" (https://segmentfault.com/a/1190000044262446) 里面的方式,使用 auditwheel repair 实现偷天换日 想验证替换是否成功了?执行 "auditwheel show ./wheelhouse/av-10.0.0-cp310-cp310-manylinux_2_35_x86_64.whl" 查看 wheel 文件信息即可 注意,此时的 wheel 名称和之前不一样了,会变成类似这样的格式: "wheelhouse/av-10.0.0-cp310-cp310-manylinux_2_35_x86_64.whl" «如果你想知道 "manylinux_2_35" 是什么含义,可以参考:"pypa/manylinux" (https://link.segmentfault.com/?enc=m9CTcFbO8d9CISe3I787kg%3D%3D.t6kPNpVBb%2B%2BNyhQnktgQUGXRepD8jNChpQo2h2dklhJ%2BrrPrwRMVszhA9TgbIOva)» *** 一些子问题: * 如何查看一个动态链接库中的依赖的其他动态链接库是绝对地址引用还是名字引用?参考: "https://segmentfault.com/q/1010000044215818" (https://segmentfault.com/q/1010000044215818) *** 打包的时候,需要注意宿主机的各种环境 可参考: * "https://github.com/mayeut/pep600_compliance" (https://link.segmentfault.com/?enc=W70bGqzjLuSLXXS9FM5DGQ%3D%3D.v6FAC3lETdRPQ5i7MsbZyubMRXGcssDUoW%2FaxzCoq%2BylFwcqbaV%2F2tqrnSqheqp4) * "https://github.com/pypa/auditwheel" (https://link.segmentfault.com/?enc=iMQmuyabj%2FlGhb8veD786w%3D%3D.cj%2FA05lpRvqSfa8X77Hgxj2B5uc%2FF6dOCQMWeunnjd94jtIkmilWQVTh8M7mYjPg)
0
0
0
浏览量0
米斯达

brew 一直没有更新内容怎么办?

最近一个月,使用 brew 一直更新不到内容 ╰─➤ brew upgrade Running `brew update --auto-update`... 上面的就是全部输出了,看起来是没有什么需要更新。但是 brew 更新一直很激进的 比如我现在的 python3.11 还是 4 版本,但是python 官方都已经发布 python3.11.5 了 按照 brew 的尿性,可能已经要给我更新 python3.11.5 了 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ where python3.11 /opt/homebrew/bin/python3.11 ╭─ponponon@MBP13ARM ~/Desktop ╰─➤ python3.11 --version Python 3.11.4 *** 我用的是中科大的镜像,是中科大的镜像不更新了吗? ─➤ brew config HOMEBREW_VERSION: 3.6.20 ORIGIN: https://mirrors.ustc.edu.cn/brew.git HEAD: 344d32bf7f40183359592ef81ca6486e0587981b Last commit: 8 months ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: 6b4073f6a9f41c5c1fc3261965244d5571add5b5 Core tap last commit: 9 minutes ago Core tap branch: master HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles HOMEBREW_CASK_OPTS: [] HOMEBREW_MAKE_JOBS: 8 Homebrew Ruby: 2.6.10 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: octa-core 64-bit arm_firestorm_icestorm Clang: 14.0.3 build 1403 Git: 2.41.0 => /opt/homebrew/bin/git Curl: 8.1.2 => /usr/bin/curl macOS: 13.5.2-arm64 CLT: 14.3.1.0.1.1683849156 Xcode: N/A Rosetta 2: false 我该如何排查? *** 先update ,然后upgrade ─➤ brew update && brew upgrade fatal: unable to access 'https://github.com/Homebrew/homebrew-core/': Recv failure: Operation timed out Error: Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core failed! ==> Homebrew collects anonymous analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). Installing from the API is now the default behaviour! You can save space and time by running: brew untap homebrew/core brew untap homebrew/cask ==> Downloading https://formulae.brew.sh/api/formula.jws.json #=#=- # # #=O#- # # -#O=- # # # ######################################################################################################################################################################################################################################################### 100.0% ==> Downloading https://formulae.brew.sh/api/cask.jws.json ######################################################################################################################################################################################################################################################### 100.0% Updated 1 tap (homebrew/services). No changes to formulae or casks. 查看 python3.11 版本,还是没有更新 ╰─➤ python3.11 --version 1 ↵ Python 3.11.4
16
1
0
浏览量269
米斯达

使用elmentui的下拉选择能实现选择色卡的效果吗?

自带的 ColorPicker 不行吗? "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241230/d787f2e72b2d299c2f85aac897760d3c.png) *** 这个其实能考虑 Popover 然后自己实现。
0
0
0
浏览量0
米斯达

新手照着ruoyi框架写,他是怎么解决循环依赖的?

ruoyi源码DruidConfig.java部分: @Bean(name = "dynamicDataSource") @Primary public DynamicDataSource dataSource(DataSource masterDataSource) { Map targetDataSources = new HashMap(); targetDataSources.put(DataSourceType.MASTER.name(), masterDataSource); setDataSource(targetDataSources, DataSourceType.SLAVE.name(), "slaveDataSource"); return new DynamicDataSource(masterDataSource, targetDataSources); } 不太清除你是怎么写的?贴一下代码看看,这里这个bean是使用@Primary来实现同类型下优先注入的,看起来你报的异常是dynamicDataSource自己依赖自己了?
0
0
0
浏览量0
米斯达

这种分页滚动加载如何处理?

假设 let group = [ {label:"a",count:25}, {label:"b",count:3}, {label:"c",count:4}, ] 现在有10条数据塞进来,那么这个时候结果为 let result = [ {label:"a",count:25,children:[]*10}, ] 当我再加10条数据进来,结果为 let result = [ {label:"a",count:25,children:[]*20}, ] 当我再加10条数据进来,这个时候超出了label:"a"的count(25),那么结果为 let result = [ {label:"a",count:25,children:[]*25}, {label:"b",count:25,children:[]*3}, {label:"c",count:25,children:[]*2} ] 再加2条进来 let result = [ {label:"a",count:25,children:[]*25}, {label:"b",count:25,children:[]*3}, {label:"c",count:25,children:[]*4} ]
8
1
0
浏览量327
米斯达

通过命令行用vscode打开test.txt, 能否省略后缀名? 能否传入基于非当前工作目录的相对路径?

第一个问题,实际上会造成一些歧义,不可能去实现。这没法帮你去决定你是真的要打开一个文件,还是要创建一个文件,你给到程序的就应该是确切的文件路径。更何况大多数 Terminal 都提供了 "TAB" 来补全输入,这根本不是痛点,Windows 下常用的 Windows Terminal、Git Bash 和 CMD 都有提供。 第二个问题,可以使用 alias(别名)来解决。 *** 看你补充的第一点, 你完全都把 ChatGPT 给问歪了,ChatGPT 在这里表达的是 “在打开没有后缀名的文件时,部分软件会自动推测文件的格式类型,从而选择正确的打开方式。”,而不是你所理解的,不提供后缀名,软件会自动检测打开指定 “可能” 的文件。 VS Code 强大的扩展能力肯定可以实现你想要的功能,那你可能就需要忍受,每次打开的时候,VS Code 就该询问你 “当前没有 xx 文件,但是有 xx.txt 文件?你是想要新建 xx 还是打开 xx.txt ?”。 当然也是可以用别名来实现的。 对于 "folder-uri" 这个选项确实是可用的,正如他的名字所说,是一个 "uri",你需要按照 "uri" 的格式传递给他。 code --folder-uri file:///D:/Documents 这样就会使用 VS Code 打开 "D:/Documents" 目录,而实际上直接使用 "code D:/Documents" 也能达到一样的效果。 但是,如果你想 code --folder-uri file:///D:/Documents foo.txt 来打开 "D:/Documents/foo.txt" 那不行,VS Code 只会在当前工作目录(current working directory)来寻找 foo.txt。 最后,有没有一种可能,CWD(Current Working Directory)就是你说的那个特别的 “PATH”,你只需要使用 "cd" 来改变它。 我想,这个功能使用扩展也应该可以实现。 但是,就这两个功能而已,使用 alias 的成本更低。
0
0
0
浏览量0
米斯达

python 处理json 数据报错?

数据有问题,这里面的"""要加反斜杠转义。 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241213/1c8dcf99591576907547f3818b1d0321.png) *** 用字符串替换把多出来的"""去掉了。。。 ss=['{\n\t"info": {\n\t\t"type": 6,\n\t\t"error": 0,\n\t\t"request_id": "35855e4dbe747cb756fd64b62eaea5a8",\n\t\t"time": 0,\n\t\t"total": 14,\n\t\t"rnum": 14,\n\t\t"linetotal":0,\n\t\t"linenum": 0,\n\t\t"stationnum": 0,\n\t\t"hint": 1,\n\t\t"foldtype": 6,\n\t\t"foldnum": 14,\n\t\t"foldaddr": "0,0,0,0,0,0,0,0,0,0,0,0,0,0",\n\t\t"marks": 0,\n\t\t"qcnum": 0,\n\t\t"qcqr_type": 0,\n\t\t"qctype": -1,\n\t\t"core_query": "",\n\t\t"where_info": "null",\n\t\t"what_info": "null",\n\t\t"querytype": -1,\n\t\t"need_adjust": 1,\n\t\t"jumpback": 1,\n\t\t"jump_to": 0,\n "jumpUrl": "",\n\t\t"cb_version": 2\n\t},\n\t"detail": {\n\t\t"city": {\n\t\t\t"ccode": 1653,\n\t\t\t"acode": 411300,\n\t\t\t"cname": "南阳市",\n\t\t\t"ctype": 2, \n\t\t\t"level": 12,\n\t\t\t"pointx": 12526620.770000,\n\t\t\t"pointy": 3894005.640000,\n\t\t\t"geotype": 0,\n\t\t\t"bus": 0,\n\t\t\t"path": [{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1},{"acode":0,"ccode":1,"cname":"中国","ctype":0}]\n\t\t},\n "general_info": {"bound_first":false,"class_distribute":"101600,261400,101099,101500,131600","in_build":false,"is_genexact":false,"pattern":"AREA+VPOI","query_type":0,"rank_type":1},\n \n\t\t \n\t\t"cities_info": null,\n\t\t"qcqr_info_json": null,\n\t\t"pois": [\n\t\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "4043393165142121820",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳高新区创业中心光电孵化园",\n\t\t\t"phone": "","addr": "河南省南阳市卧龙区高新区创业中心光电孵化园",\n\t\t\t"classes": "房产小区:产业园区",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895185,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.888478,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.526580,\n\t\t\t"pointy": 33.029096,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "0.000000",\n "heat_info": "8826",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.52666,33.02744",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "281100",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "894",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "964",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.8086931705",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"房产小区:产业园区","rich_source":"tx_aoi"},"rich":[{"address":"河南省南阳市卧龙区高新区创业中心光电孵化园","area_value":133573.72,"business_name":"南阳高新区创业中心光电孵化园","business_status":"正常商户","city":"南阳市","famous_bounds":"112.524811,33.027317;112.528526,33.031132","lat":"33.029096","latitude":"33.029096","lng":"112.526580","longitude":"112.526580","name":"南阳高新区创业中心光电孵化园","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"房产小区:产业园区","rich_source":"tx_aoi","rich_source_url":"","telphone":""}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["光彩大世界:112.514001,33.022356:131700:1393", "南阳市第四人民医院(总院):112.523511,33.026517:201000:405", "南阳市第十五完全学校:112.525849,33.025253:241100:433", "中光学集团:112.521133,33.035575:111000:882"], "road": ["叶庄路:112.528595,33.029133", "孵化园路:112.526574,33.027219", "信臣西路:112.524854,33.034531", "岗王庄路:112.524799,33.029090"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "15019732837453667274",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳市高新区医院(新院区)",\n\t\t\t"phone": "0377-61160120;0377-83978397;16696303310","addr": "河南省南阳市卧龙区杜诗路与仲景路交叉口东南侧",\n\t\t\t"classes": "医疗保健:综合医院",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895039,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.849386,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.562662,\n\t\t\t"pointy": 33.040440,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "0.000000",\n "heat_info": "9090",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.5629395,33.0411824",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "201000",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "650",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "974",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.7794007063",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"医疗保健:综合医院","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区杜诗路与仲景路交叉口东南侧","area_value":0,"business_name":"南阳市高新区医院(新院区)","business_status":"正常商户","city":"南阳市","lat":"33.040440","latitude":"33.040440","lng":"112.562662","longitude":"112.562662","name":"南阳市高新区医院(新院区)","open_time":"08:00-12:00,14:00-18:00","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"医疗保健:综合医院","rich_source":"lbs_rich","rich_source_url":"","telphone":"0377-61160120;0377-83978397;16696303310"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["天一驾校:112.560077,33.047751:191500:848", "中南钻石股份有限公司(南阳分公司):112.563331,33.042537:111000:241", "南阳市骨科医院(独山院区):112.567020,33.037037:201115:555"], "road": ["独山大道:112.568865,33.038729", "信臣东路:112.560481,33.031646", "仲景大道:112.560305,33.040934"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "11699008369194486980",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "赵营",\n\t\t\t"phone": "","addr": "河南省南阳市宛城区高新区产业集聚工业园",\n\t\t\t"classes": "地名地址:行政地名",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696894960,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.445826,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.575498,\n\t\t\t"pointy": 32.965004,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "0.000000",\n "heat_info": "3565",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.57463,32.97132",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "261400",\n\t\t\t"SO": "411302",\n\t\t\t"POI_PATH":[{"acode":411302,"ccode":1654,"cname":"宛城区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "640",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "972",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4643840790",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"地名地址:行政地名","rich_source":"gambol"},"rich":[{"address":"河南省南阳市宛城区高新区产业集聚工业园","area_value":0,"business_name":"赵营","business_status":"正常商户","city":"南阳市","lat":"32.965004","latitude":"32.965004","lng":"112.575498","longitude":"112.575498","name":"赵营","province":"河南省","regions":"宛城区","review_count":"0","rich_category1":"rich.common","rich_category2":"地名地址:行政地名","rich_source":"gambol","rich_source_url":"","telphone":""}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "546712092226293318",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳云河国际商务会馆",\n\t\t\t"phone": "0377-63066666","addr": "河南省南阳市卧龙区高新区信臣路中段(七里园经济管理学院对面)",\n\t\t\t"classes": "酒店宾馆:酒店宾馆",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 208,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895244,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.488645,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.550648,\n\t\t\t"pointy": 33.032329,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "208",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "60.000000",\n "heat_info": "14877",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.55048,33.03275",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "211000",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "997",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "964",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4968228936",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"14","real_comment_num":"14","rich_category1":"rich.hotel","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"14"}],"common":{"rich_category1":"rich.hotel","rich_category2":"酒店宾馆:酒店宾馆","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区高新区信臣路中段(七里园经济管理学院对面)","area_value":6148.08,"business_name":"南阳云河国际商务会馆","business_status":"正常商户","city":"南阳市","famous_bounds":"112.550125,33.031994;112.551277,33.032673","introduction":"南阳云河?国际商务会馆是一家集洗浴、住宿、餐饮康乐、茶艺等为一体的休闲商务会馆,营业面积18000平方米,总投资愈亿元,国内设计大师主理,简欧装饰风格融入现代流行元素休息厅,配置水疗设施,早中晚宵夜自助餐完美供应,鲜果任食,室内活水泳池恒温开放,VIP专用区,百余间客房配置风格迥异","lat":"33.032329","latitude":"33.032329","lng":"112.550648","longitude":"112.550648","name":"南阳云河国际商务会馆","open_time":"00:00-24:00","province":"河南省","regions":"卧龙区","review_count":"14","rich_category1":"rich.hotel","rich_category2":"酒店宾馆:酒店宾馆","rich_source":"lbs_rich","rich_source_url":"","telphone":"0377-63066666"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["河南省经济管理学校:112.547849,33.036819:241600:563", "南阳藏珑:112.553030,33.035906:281010:456", "龙都?臻品:112.551683,33.031335:281010:146", "机床厂文明小区:112.550431,33.030806:281010:170", "万和医院:112.539782,33.031513:201000:1018"], "road": ["七里园一街:112.550287,33.029859", "信臣中路:112.550109,33.032884", "仲景大道:112.556709,33.029912", "商苑街:112.549962,33.032414"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "14491873719233335446",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳技师学院",\n\t\t\t"phone": "0377-63291016;0377-63668802","addr": "河南省南阳市卧龙区七里园新街1号",\n\t\t\t"classes": "教育学校:职业技术学校",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895038,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.443114,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.546265,\n\t\t\t"pointy": 33.030262,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "60.000000",\n "heat_info": "7842",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.54739,33.02987",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "241600",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "878",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "964",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4613092542",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"教育学校:职业技术学校","rich_source":"user.pp"},"rich":[{"address":"河南省南阳市卧龙区七里园新街1号","area_value":0,"business_name":"南阳技师学院","business_status":"正常商户","city":"南阳市","lat":"33.030262","latitude":"33.030262","lng":"112.546265","longitude":"112.546265","name":"南阳技师学院","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"教育学校:职业技术学校","rich_source":"user.pp","rich_source_url":"","telphone":"0377-63291016;0377-63668802"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["万德隆(高新店):112.540167,33.026727:131200:691", "河南省经济管理学校:112.547849,33.036819:241600:744", "南阳市移动公司高新小区:112.548388,33.028653:281010:267", "万和医院:112.539782,33.031513:201000:620"], "road": ["两相西路:112.546078,33.027424", "工农路:112.547440,33.030108", "两相西路818巷:112.544868,33.029424", "工农北路:112.547450,33.030161", "信臣中路:112.546717,33.033257", "人民北路:112.539268,33.030402", "商苑街:112.549536,33.029924", "人民路:112.539286,33.030682"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "279951984666785875",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "八里岔",\n\t\t\t"phone": "","addr": "河南省南阳市宛城区高新区产业集聚工业园",\n\t\t\t"classes": "地名地址:行政地名",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895241,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.445826,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.574352,\n\t\t\t"pointy": 32.953877,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "0.000000",\n "heat_info": "3050",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.57523,32.95423",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "261400",\n\t\t\t"SO": "411302",\n\t\t\t"POI_PATH":[{"acode":411302,"ccode":1654,"cname":"宛城区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "640",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "969",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4640240669",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"地名地址:行政地名","rich_source":"gambol"},"rich":[{"address":"河南省南阳市宛城区高新区产业集聚工业园","area_value":0,"business_name":"八里岔","business_status":"正常商户","city":"南阳市","lat":"32.953877","latitude":"32.953877","lng":"112.574352","longitude":"112.574352","name":"八里岔","province":"河南省","regions":"宛城区","review_count":"0","rich_category1":"rich.common","rich_category2":"地名地址:行政地名","rich_source":"gambol","rich_source_url":"","telphone":""}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "16303083109928264460",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳市宏志学校",\n\t\t\t"phone": "0377-60553865","addr": "河南省南阳市宛城区雪枫路与经十路交叉口东南200米",\n\t\t\t"classes": "教育学校:中学",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895082,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.888929,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.583770,\n\t\t\t"pointy": 32.950311,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "0.000000",\n "heat_info": "3184",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": " ",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "241100",\n\t\t\t"SO": "411302",\n\t\t\t"POI_PATH":[{"acode":411302,"ccode":1654,"cname":"宛城区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "760",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "466",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.7492843270",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"教育学校:中学","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市宛城区雪枫路与经十路交叉口东南200米","area_value":0,"business_name":"南阳市宏志学校","business_status":"正常商户","city":"南阳市","lat":"32.950311","latitude":"32.950311","lng":"112.583770","longitude":"112.583770","name":"南阳市宏志学校","province":"河南省","regions":"宛城区","review_count":"0","rich_category1":"rich.common","rich_category2":"教育学校:中学","rich_source":"lbs_rich","rich_source_url":"","telphone":"0377-60553865"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["中梁首府:112.584449,32.955876:281010:622", "南阳中商农产品批发市场:112.595049,32.955748:131600:1215"], "aoi": ["高新区产业集聚工业园:112.583770,32.950311"], "road": ["紫山路:112.592688,32.950270", "雪枫东路:112.583711,32.952335"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "15844256918043842859",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳大寨水产中心",\n\t\t\t"phone": "18737751856","addr": "河南省南阳市卧龙区七里园乡高新区龙祥路",\n\t\t\t"classes": "购物:农贸市场",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895055,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.443114,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.538903,\n\t\t\t"pointy": 33.039816,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "90.000000",\n "heat_info": "2349",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.53813,33.03988",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "131600",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "693",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "962",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4610692859",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"购物:农贸市场","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区七里园乡高新区龙祥路","area_value":0,"avg_rating":"4.5","business_name":"南阳大寨水产中心","business_status":"正常商户","city":"南阳市","lat":"33.039816","latitude":"33.039816","lng":"112.538903","longitude":"112.538903","name":"南阳大寨水产中心","open_time":"02:00-20:30","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"购物:农贸市场","rich_source":"lbs_rich","rich_source_url":"","star_level":90,"telphone":"18737751856"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["河南省经济管理学校:112.547849,33.036819:241600:899", "龙祥世纪家园:112.540397,33.041885:281010:269", "祥和建材批发市场:112.537636,33.038068:131511:227", "万和医院:112.539782,33.031513:201000:927", "建兴制衣:112.538554,33.042731:111000:326"], "road": ["南泰路:112.544287,33.040626", "信臣中路:112.539285,33.033649", "鸭河快速通道:112.538136,33.039628", "银丰路:112.544287,33.040626"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "2045118495652778090",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "南阳正开源汽车销售服务有限公司",\n\t\t\t"phone": "0377-66037999;4001771380","addr": "河南省南阳市卧龙区高新区北京路与麒麟路交叉口向南200米路西",\n\t\t\t"classes": "汽车:汽车销售",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895151,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.488618,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.497102,\n\t\t\t"pointy": 33.002647,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "90.000000",\n "heat_info": "11660",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.4976667,33.0025899",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "191200",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "800",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "972",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4977623522",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"汽车:汽车销售","rich_source":"user.pp"},"rich":[{"address":"河南省南阳市卧龙区高新区北京路与麒麟路交叉口向南200米路西","area_value":0,"avg_rating":"4.5","brand_id":"","business_name":"南阳正开源汽车销售服务有限公司","business_status":"正常商户","city":"南阳市","lat":"33.002647","latitude":"33.002647","lng":"112.497102","longitude":"112.497102","name":"南阳正开源汽车销售服务有限公司","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"汽车:汽车销售","rich_source":"user.pp","rich_source_url":"","star_level":90,"telphone":"0377-66037999;4001771380"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["南阳市第一人民医院(西区医院):112.506915,33.005283:201000:961", "北京?印象:112.498943,33.001564:281010:209", "正锦?麒麟公馆:112.491599,33.009302:281010:901", "舒心园:112.495992,33.002110:281010:119", "卓越西苑小区:112.500130,33.001447:281010:312"], "road": ["军农路:112.497115,33.001163", "北京北路:112.497963,33.002655", "博望路:112.491722,33.002602"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "2617076498755676011",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "三品鲜?贵人宴",\n\t\t\t"phone": "0377-61290000","addr": "河南省南阳市卧龙区人民北路与两相西路交叉口向东500米路北",\n\t\t\t"classes": "美食:中餐厅:其它中餐厅",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 21,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895180,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.887348,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.543956,\n\t\t\t"pointy": 33.027744,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "21",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "70.000000",\n "heat_info": "10299",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.5440005,33.027568",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "101099",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "300",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "200",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.7161313295",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"1","real_comment_num":"1","rich_category1":"rich.restaurant","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"1"}],"common":{"rich_category1":"rich.restaurant","rich_category2":"美食:中餐厅:其它中餐厅","rich_source":"user.pp"},"rich":[{"address":"河南省南阳市卧龙区人民北路与两相西路交叉口向东500米路北","area_value":0,"avg_rating":"3.5","brand_id":"","business_name":"三品鲜?贵人宴","business_status":"正常商户","city":"南阳市","lat":"33.027744","latitude":"33.027744","lng":"112.543956","longitude":"112.543956","name":"三品鲜?贵人宴","open_time":"11:30-21:00","price":"21","province":"河南省","recommend":"","regions":"卧龙区","review_count":"1","rich_category1":"rich.restaurant","rich_category2":"美食:中餐厅:其它中餐厅","rich_source":"user.pp","rich_source_url":"","star_level":70,"telphone":"0377-61290000"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["万德隆(高新店):112.540167,33.026727:131200:371"], "aoi": ["南阳东方之星商务酒店:112.543991,33.027766"], "road": ["两相西路818巷:112.544948,33.027717"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "2743857230040768114",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": ["烈火牛肉:羊肉串:铁板龙利鱼:蘸汁嫩牛肉:辣炒花甲:土城鲜炒鸡:罐罐烧肉:蜜汁鸡翅:马步鱼"],\n\t\t\t\n\t\t\t"name": "土城烧烤店(南阳平安大厦店)",\n\t\t\t"phone": "0377-63629888","addr": "河南省南阳市卧龙区南阳高新区张衡街道明山路与张衡路交叉口中?濠庭一楼",\n\t\t\t"classes": "美食:烧烤",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 78,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895187,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.470424,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.560762,\n\t\t\t"pointy": 33.023903,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "78",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "70.000000",\n "heat_info": "4222",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.5604553,33.0240002",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "101500",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "800",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "976",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4840510190",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"15","real_comment_num":"15","rich_category1":"rich.restaurant","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"15"}],"common":{"rich_category1":"rich.restaurant","rich_category2":"美食:烧烤","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区南阳高新区张衡街道明山路与张衡路交叉口中?濠庭一楼","area_value":0,"avg_rating":"3.5","business_name":"土城烧烤店(南阳平安大厦店)","business_status":"正常商户","city":"南阳市","lat":"33.023903","latitude":"33.023903","lng":"112.560762","longitude":"112.560762","name":"土城烧烤店(南阳平安大厦店)","open_time":"17:00-01:00","price":"78","province":"河南省","recommend":"烈火牛肉;羊肉串;掌中宝;铁板龙利鱼;马步鱼;土城鲜炒鸡;罐罐烧肉;蘸汁嫩牛肉;蜜汁鸡翅;辣炒花甲","regions":"卧龙区","review_count":"15","rich_category1":"rich.restaurant","rich_category2":"美食:烧烤","rich_source":"lbs_rich","rich_source_url":"","special":"复古风格","star_level":70,"telphone":"0377-63629888"}]},\n "wisdom_info": null,\n "general_search_info": {"recommend_food_tag": "烈火牛肉:羊肉串:铁板龙利鱼:蘸汁嫩牛肉:辣炒花甲:土城鲜炒鸡:罐罐烧肉:蜜汁鸡翅:马步鱼"},\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["中景门国贸:112.568596,33.023633:281099:731", "万德隆购物广场(仲景路店):112.554330,33.018276:131000:867", "联通大厦:112.559439,33.023877:281200:123", "南阳市联通公司:112.558871,33.024228:111000:180", "卓越?香樟美域:112.561311,33.024731:281010:105", "凤凰城:112.563735,33.021479:281010:387"], "aoi": ["平安大厦(张衡中路):112.561029,33.023687"], "road": ["张衡东路:112.560720,33.023024"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "16634674257961837689",\n\t\t\t"category_num": "",\n\t\t\t"click_node": {"all_click_180_nav":72,"all_click_180_search":32,"all_click_180_sg":38,"all_click_180_wechat_friend":62,"all_click_180_wechat_send":1984,"all_click_90_nav":25,"city_rank_id":3376,"city_rank_id_90_nav":13032,"rank_id":991286,"top_rate":0.5}\n,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "12208313684589567510",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": ["青1色毛肚:炸腐皮:养生乌鸡卷:红糖糍粑:黄金蛋饺:羊肉卷:手切羊羔肉:功夫牛肉丸:川粉"],\n\t\t\t\n\t\t\t"name": "重庆青一色火锅(两相路店)",\n\t\t\t"phone": "0377-66116688;0377-63023777;18338382108","addr": "河南省南阳市卧龙区两相路盛世御苑门口",\n\t\t\t"classes": "美食:火锅",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 70,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696894986,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.440901,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.562688,\n\t\t\t"pointy": 33.027220,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "70",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "100.000000",\n "heat_info": "7500",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.56256,33.02758",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "101600",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "800",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "976",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4610231221",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"15","real_comment_num":"15","rich_category1":"rich.restaurant","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"15"}],"common":{"rich_category1":"rich.restaurant","rich_category2":"美食:火锅","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区两相路盛世御苑门口","area_value":0,"brand_id":"2011857","business_name":"重庆青一色火锅(两相路店)","business_status":"正常商户","city":"南阳市","lat":"33.027220","latitude":"33.027220","lng":"112.562688","longitude":"112.562688","name":"重庆青一色火锅(两相路店)","open_time":"10:30-22:30","price":"70","province":"河南省","recommend":"青一色毛肚;炸腐皮;养生乌鸡卷;红糖糍粑;功夫牛肉丸;黄金蛋饺;川粉;羊肉卷;自助小料;手切羊羔肉","regions":"卧龙区","review_count":"15","rich_category1":"rich.restaurant","rich_category2":"美食:火锅","rich_source":"lbs_rich","rich_source_url":"","special":"儿童游乐区","telphone":"0377-66116688;0377-63023777;18338382108"}]},\n "wisdom_info": null,\n "general_search_info": {"recommend_food_tag": "青1色毛肚:炸腐皮:养生乌鸡卷:红糖糍粑:黄金蛋饺:羊肉卷:手切羊羔肉:功夫牛肉丸:川粉"},\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["中景门国贸:112.568596,33.023633:281099:680", "宇信?凯旋门:112.562065,33.028713:281010:176", "富唐?中州国际饭店:112.563443,33.029089:211100:219"], "road": ["明山路:112.561185,33.027434", "两相东路:112.562717,33.027480"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "17846711217575262857",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": [],\n\t\t\t\n\t\t\t"name": "光猪圈游泳健身(两相东路店)",\n\t\t\t"phone": "19913602871","addr": "河南省南阳市卧龙区南阳高新区张衡街道独山大道与两相路交叉口向西五百米盛世御苑楼下",\n\t\t\t"classes": "运动健身:健身中心",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 0,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895119,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.470052,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.563750,\n\t\t\t"pointy": 33.027240,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "0",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "84.000000",\n "heat_info": "11862",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.56375,33.0273",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "181000",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "703",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 99,\n\t\t\t"CROSS_RANK": "965",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.4824404418",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"0","real_comment_num":"0","rich_category1":"rich.common","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"0"}],"common":{"rich_category1":"rich.common","rich_category2":"运动健身:健身中心","rich_source":"user.pp"},"rich":[{"address":"河南省南阳市卧龙区南阳高新区张衡街道独山大道与两相路交叉口向西五百米盛世御苑楼下","area_value":0,"avg_rating":"4.2","brand_id":"1010286","business_name":"光猪圈游泳健身(两相东路店)","business_status":"正常商户","city":"南阳市","lat":"33.027240","latitude":"33.027240","lng":"112.563750","longitude":"112.563750","name":"光猪圈游泳健身(两相东路店)","open_time":"09:00-21:30","province":"河南省","regions":"卧龙区","review_count":"0","rich_category1":"rich.common","rich_category2":"运动健身:健身中心","rich_source":"user.pp","rich_source_url":"","star_level":84,"telphone":"19913602871"}]},\n "wisdom_info": null,\n "general_search_info": null,\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["中景门国贸:112.568596,33.023633:281099:604", "中国邮政储蓄银行(南阳市中心支行):112.565066,33.026848:251000:130", "富唐?中州国际饭店:112.563443,33.029089:211100:207"], "road": ["张衡东路:112.566056,33.023588", "明山路:112.561218,33.027600"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "null",\n\t\t\t"category_num": "",\n\t\t\t"click_node": null,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t},\n\t\t\n\t\t\n\t\t\t\n\t\t\t{\n\t\t\t"uid": "12795694089314202934",\n\t\t\t"fe_tpl_id": "0",\n\t\t\t"tips": [],\n\t\t\t"recall_tag": ["test1","test2"],\n\t\t\t"rich_tag": [],\n\t\t\t"recommend_food_tag": ["广味香肠:鸭肠:火锅集市:千层肚:娃娃菜:脆毛肚:龙虾丸子:手打虾滑:干贡菜:鱼豆腐"],\n\t\t\t\n\t\t\t"name": "一嘴香?摊摊火锅集市(南阳总店)",\n\t\t\t"phone": "0377-63278188;15660158866","addr": "河南省南阳市卧龙区南阳高新区张衡街道张衡东路与独山大道交叉口东500米路南兴宛公寓楼下",\n\t\t\t"classes": "美食:火锅",\n\t\t\t"classname": "null",\n\t\t\t"passlines":{},\n "cs": 66,\n\t\t\t"xgc_st": 0,\n\t\t\t"xgc_to": 0,\n\t\t\t"xgc_ms": 0,\n\t\t\t"tag": [],\n\t\t\t"timestamp": 1696895113,\n\t\t\t"rankep": 0,\n\t\t\t"ranktp": 0.464214,\n\t\t\t"rankqp": 0,\n\t\t\t"zip": " ",\n\t\t\t"pinfo": "",\n\t\t\t"pointx": 112.570636,\n\t\t\t"pointy": 33.021304,\n\t\t\t"geotype": 0,\n\t\t\t"poitype": 0,\n\t\t\t"src": 0,\n\t\t\t"detail": 1,\n\t\t\t"dis": 0.00,\n "average_price": "66",\n\t\t\t"comment_num": "0",\n\t\t\t"comment_level": "70.000000",\n "heat_info": "6808",\n\t\t\t"special_rec": " ",\n\t\t\t"pic_id": " ",\n\t\t\t"nav_lola": "112.570634,33.0214395",\n\t\t\t"navpoint_info": {},\n\t\t\t"CO": "101600",\n\t\t\t"SO": "411303",\n\t\t\t"POI_PATH":[{"acode":411303,"ccode":1655,"cname":"卧龙区","ctype":3},{"acode":411300,"ccode":1653,"cname":"南阳市","ctype":2},{"acode":410000,"ccode":1534,"cname":"河南省","ctype":1}],\n\t\t\t"SH": "300",\n\t\t\t"BL": " ",\n\t\t\t"AL": " ",\n\t\t\t"reliability_description":"",\n\t\t\t"PL": 71,\n\t\t\t"CROSS_RANK": "200",\n\t\t\t"QQ_CLICK": "0",\n\t\t\t"RELA": "0.3860866427",\n\t\t\t"base_url": "",\n\t\t\t"isxp": 0,\n\t\t\t"richInfo": {"comment":[{"comment_num":"15","real_comment_num":"15","rich_category1":"rich.restaurant","rich_source":"dianping_hezuo","source_name":"大众点评网","total_comment_info_num":"15"}],"common":{"rich_category1":"rich.restaurant","rich_category2":"美食:火锅","rich_source":"lbs_rich"},"rich":[{"address":"河南省南阳市卧龙区南阳高新区张衡街道张衡东路与独山大道交叉口东500米路南兴宛公寓楼下","area_value":0,"avg_rating":"3.5","business_name":"一嘴香?摊摊火锅集市(南阳总店)","business_status":"正常商户","city":"南阳市","lat":"33.021304","latitude":"33.021304","lng":"112.570636","longitude":"112.570636","name":"一嘴香?摊摊火锅集市(南阳总店)","open_time":"11:00-14:00,17:30-22:30","price":"66","province":"河南省","recommend":"广味香肠;火锅集市;鸭肠;千层肚;娃娃菜;脆毛肚;干贡菜;手打虾滑;龙虾丸子;鱼豆腐","regions":"卧龙区","review_count":"15","rich_category1":"rich.restaurant","rich_category2":"美食:火锅","rich_source":"lbs_rich","rich_source_url":"","star_level":70,"telphone":"0377-63278188;15660158866"}]},\n "wisdom_info": null,\n "general_search_info": {"recommend_food_tag": "广味香肠:鸭肠:火锅集市:千层肚:娃娃菜:脆毛肚:龙虾丸子:手打虾滑:干贡菜:鱼豆腐"},\n\t\t\t"floor_name": " ",\n\t\t\t"is_inside": 0,\n\t\t\t"inside_class": " ",\t\t\t\n\t\t\t"build_id": "0",\n "shinei_id": "0",\n "index_id": " ",\n "logo_url": "{"landmark": ["中景门国贸:112.568596,33.023633:281099:321", "丰源小区:112.572878,33.020236:281010:240"], "aoi": ["南阳市兴宛学校教师公寓:112.569746,33.021230"]}",\n "Logo_Pho": "",\n "has_groupbuy_info": "",\n\t\t\t"xpinfo": "",\n "showreason": null,\n\t\t\t"accessflag": " ",\n\t\t\t"gate": " ",\n\t\t\t"master_id": "15858389174524935662",\n\t\t\t"category_num": "",\n\t\t\t"click_node": {"all_click_180_nav":240,"all_click_180_search":120,"all_click_180_sg":162,"all_click_180_wechat_friend":68,"all_click_180_wechat_send":2836,"all_click_90_nav":111,"city_rank_id":1511,"city_rank_id_90_nav":2546,"rank_id":444046,"top_rate":0.40000000000000002}\n,\n\t\t\t"BD_status": "",\n\t\t\t"master_slaver_type": "null"\n\t\t\t}\n\t\t\n\t\t\n\t\t],\n\t\t"subpois": {\n\t\t\n\t\t},\n\t\t"backlink":\n\t\t{\n\t\t\t"type": 2,\n\t\t\t"acode": 0,\n\t\t\t"ccode": 1,\n\t\t\t"cname": "中国",\n\t\t\t"query": "南阳市南阳高新技术产业开发区"\n\t\t},\n\t\t"geoInfo": {}\n\t\t\n\t}\n}'] #print(ss[0]) tt = ss[0].replace('"logo_url": "{','"logo_url": {').replace('}",\n "Logo_Pho"','},\n "Logo_Pho"') res=json.loads(tt) print(res)
0
0
0
浏览量0
米斯达

这个情况是因为什么?控制台输出的对象,在展开和折叠时数据不对等?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241208/de79a1dd869c9c818fb2b94f816c0f12.png)
0
1
0
浏览量18
米斯达

IEEE754 java如何解析?

输入一个IEEE754的16进制表示字符串,怎么通过java转换为十进制,比如 将c4039333转换为 -526.29998779296875
0
1
0
浏览量9
米斯达

为什么xxl-job和海豚调度 执行任务时结果要返回给admin/master处理, 而不是执行器/worker直接更新结果?

这样时有什么考虑吗
0
1
0
浏览量14
米斯达

这个文件夹显示隐藏这种功能该怎么做?

额,也不知道是不是要这样的效果,如果是的话,那就是在鼠标 ":hover" 的时候改变文本类型就是了。 "https://jsfiddle.net/ts91v3p5/" (https://jsfiddle.net/ts91v3p5/) 这是一个美女吗?我不知道,反正是从百度里拿搜出来的,是不是美女你自己看啊。 .item { width: 200px; } .item img { display: block; width: 200px; height: 200px; margin-bottom: 8px; } .item span { display: block; width: 100%; height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item:hover span { display: inline; white-space: normal; }
0
0
0
浏览量0
米斯达

部署后,大文件下载报错:ClientAbortException: java.io.IOException: 你的主机中的软件中止了一个已建立的连接?

你是直接是java前面没有代理的话应该是java 超时了,你配置一下超时时间 URL url = new URL(fileUrl); URLConnection connection = url.openConnection(); // 设置连接超时时间为60秒 connection.setConnectTimeout(60000); ..... 如果还有nginx就这样配置一下 location /api { proxy_pass http://127.0.0.1:5000; # nginx跟后端服务器连接超时时间 proxy_connect_timeout 300; # 后端服务器数据回传超时时间 proxy_send_timeout 300; # 连接成功后,后端服务器响应超时时间 proxy_read_timeout 300; proxy_set_header Host $host:$server_port; }
0
0
0
浏览量0
米斯达

为什么promise.then 和 promise.catch 捕获错误的顺序不一样?

Promise.resolve(Promise.resolve(1)).then(res => { console.log(res) }).catch(err => console.log(err)) Promise.resolve('fffff').then(res => { console.log(res) }).catch(err => console.log(err)) Promise.resolve(Promise.reject(999)).then(res => { console.log(res) }).catch(err => console.log(err)) Promise.resolve(Promise.resolve(2444)).then(res => { console.log(res) }).catch(err => console.log(err)) // 1 fffff 2444 999 // ------------------------------------------------------------------ Promise.resolve(Promise.resolve(1)).then(res => { console.log(res) }).catch(err => console.log(err)) Promise.resolve('fffff').then(res => { console.log(res) }).catch(err => console.log(err)) Promise.resolve(Promise.reject(999)).then(res => { console.log(res) }, err => console.log(err)) Promise.resolve(Promise.resolve(2444)).then(res => { console.log(res) }).catch(err => console.log(err)) // 1 fffff 999 2444
0
2
0
浏览量23
米斯达

我要如何检查是哪里使用过多内存?

用Java的内存分析工具,如VisualVM或JProfiler
0
0
0
浏览量0
米斯达

vue使用VONIC插件路由回退后修改data数据不渲染?

"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/cef34987d7a04dc1a8f9b02028159376.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/c2630464069bd840e427259679818418.png) 在回调函数中打印的desc是为1的,但是页面不渲染,事件总线、localStorage、vue.$set都试过还是一样的问题,人都晕了,是和这个组件库的关系吗 路由渲染:"image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/images/20241117/52bbd658d4f3e5b793d75430ca1efb6c.png)
0
1
0
浏览量14
米斯达

如何对script标签引入的 JS文件没有做异步处理?

"image.png" (https://wmlx-new-image.oss-cn-shanghai.aliyuncs.com/images/20241111/720751b9bc9f0c4b9b08a54be97594f0.png) «"https://juejin.cn/post/6917898288481959943" (https://link.segmentfault.com/?enc=8oLXJkrSr0P4YkLltschWg%3D%3D.TJGIn45By1mkofdslPGDRe7AWmPvuIhWeTsarNoyC4kipUrAb41gw15cHhkYtN7i)»
0
0
0
浏览量0
米斯达

Java 中如何读取 Excel 文件公式计算后的值?

在"GcExcel" (https://link.segmentfault.com/?enc=27oMFmbGqFVaqQ9knHr40w%3D%3D.yv0kq3I0jeFMFa7n%2BoHsxxM2nsXDP9b0U6Js%2FFlKUccGG14o0NlmvNvl6Hx7VNmCu8HXabXsRQfC%2Fe13lYZ0bE0LJN7Paf9fVQossrGFF7o%3D)中,可以通过setFormula设置公式,之后使用getValue可以直接获取到公式计算的结果。 public void GetFormulaValue() { Workbook wb = new Workbook(); IWorksheet sheet = wb.getWorksheets().get(0); sheet.getRange("A1").setValue(1); sheet.getRange("B1").setValue(2); sheet.getRange("C1").setFormula("=SUM(A1,B1)"); // 输出: C1 的结果是:3.0 System.out.print("C1 的结果是:" + sheet.getRange("C1").getValue()); }
0
0
0
浏览量0
米斯达

lint-staged如何撤销暂存区的文件到工作区?

"lint-staged": { "./src/**/*": ["eslint --fix", "prettier --write"] }, 配置完上述代码后,我依次执行"git add .","git commit -m "test"",然后eslint检测到有未使用的变量,中止commit,但是我操作过的文件处于"暂存目录",需要手动执行"git restore --staged .",有没有办法在eslint发生错误时,让文件主动处于"工作区"
0
1
0
浏览量17
米斯达

Java 中如何按列读取 Excel 数据?

Java 中如何按列读取 Excel 数据 我有一个excel文件,希望用java读取某个表单某列的值,以便做后续的操作。有推荐的方案吗?
0
1
0
浏览量16
米斯达

如何在 Vue 中实现 Excel 格式的输入与显示?

请问 Vue 可以做到 input 显示 2位小数,但实际是5位小数值,像excel? 举例: excel可以在单元格输入 1.23456,显示时只会显示 1.23 二位小数,但运算时还是使用 1.23456 去计算 目前能在 vue change 时用 round 近位到 2 位小数,但是实际值也被更改成 1.23
0
1
0
浏览量12
米斯达

Vue3,父子组件通讯和数据传递?

建议,数据列表单独弄个ts文件处理,组件只处理组件内逻辑,涉及数据的放单独ts文件内,组件只管渲染,这样你的问题就不用纠结了,咋搞都行
0
0
0
浏览量0
米斯达

Koa中间件ctx.request.body为何是字符串?

这个要看请求你传的Content-Type类型 fetch("http://localhost:7777/deploy?d=1111",{ method:'POST', //请求类型 headers:{ //请求头 "Content-Type":'application/json' }, body:JSON.stringify({ a:33333}), //请求参数 }).then(function(res){ return res.json(); })
0
0
0
浏览量0
米斯达

crypto-js中的WordArray到底是什么?

什么是 WordArray? 官方文档是这么描述的: «CryptoJS can convert from encoding formats such as "Base64" , "Latin1" or "Hex" to "WordArray" objects and vice-versa.» 翻译过来就是: "CryptoJS" 可以从 "Base64" 、 "Latin1" 或 "Hex" 等编码格式转换为 "WordArray" 对象(数组也算一种全局对象),反之亦然 一般来说,秘钥字符串、明文字符串这些都会被转为 "WordArray" 类型,方便处理 示例用法: let words = CryptoJS.enc.Base64.parse("SGVsbG8sIFdvcmxkIQ=="); let base64 = CryptoJS.enc.Base64.stringify(words); let words = CryptoJS.enc.Latin1.parse("Hello, World!"); let latin1 = CryptoJS.enc.Latin1.stringify(words); let words = CryptoJS.enc.Hex.parse("48656c6c6f2c20576f726c6421"); let hex = CryptoJS.enc.Hex.stringify(words); let words = CryptoJS.enc.Utf8.parse("𔭢"); let utf8 = CryptoJS.enc.Utf8.stringify(words); let words = CryptoJS.enc.Utf16.parse("Hello, World!"); let utf16 = CryptoJS.enc.Utf16.stringify(words); let words = CryptoJS.enc.Utf16LE.parse("Hello, World!"); let utf16 = CryptoJS.enc.Utf16LE.stringify(words); 为什么输出 key 返回了长度为 4 的数组? 上文提及,字符串会被转为 “单词数组”,而每个 "ASCII" 字符在 "UTF-8" 编码下通常只占用 一个字节 ,所以按 四个字符 划分为一个处理后的 32 位整数,LSXR|MYY0|3716|5336 对应长度为 4 参考: «"官方文档-> encoders" (https://link.segmentfault.com/?enc=RHhbB7G9nyF6Za7f8c8CVw%3D%3D.WQt7cGi7s6OiWe8duKCwuhUQx6PKw2wJglSvbBBsZ6fBiqIg4pWdi4ziRtc6CaNT)»
0
0
0
浏览量0
米斯达

地图弹窗不显示,是什么原因呢?

1、控制台看是否有相关报错,针对处理; 2、Linux和Window对路径地址的读取有所不同,文件加载是否正确?
0
0
0
浏览量0
米斯达

做百度前端技术学院对象原型继承时,对这个问题题目的不解?

* 第一个问题:答案是 Teacher.prototype * 第二个问题,国内翻译很多,也有叫做隐式显式的,但以 MDN 文档为准即可 Constructor.prototype 称为函数的自有原型 someObject.proto 称为原型 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/94cab6fdd5b2fa29c09e1ea3c741dfce.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/5ea85a863fcf2cfd7ccdc025d8070b70.png)
0
0
0
浏览量0
米斯达

nodejs中怎么引入有ES6语法的npm包?

nodejs中怎么引入有ES6语法的npm包? nodejs中引入模块用的是require,需要用到的npm包使用的是import https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/e6650f7f9b97d6db90a0c310065c9609.png 用nodejs的express-gennerator生成的骨架,views下的index.ejs是主页面,当中用外部链接引用的js文件,js文件当中用import引入node_modules中的模块就报错,是不能这样用吗? 其他地方查的有说nodejs已经支持es6语法了,但script标签中加type="module"和package.json中type="modules"都不行。babel编译的方法也试了一下,也没成功。 菜鸟一枚,请大家详细的指教一下。
0
1
0
浏览量10
米斯达

rust 在 vscode 编辑器上使用遇到的问题?

有一个 rust 项目,项目的顶级目录作为当前的 vscode 工作区目录的子目录,这个时候发现 rust-analyzer 扩展无法识别出 rust 项目,除非把 vscode 工作区目录切换为项目目录,有没有办法让 vscode 工作区目录在项目目录上层时 rust-analyzer 扩展也能工作。 还有一个调试的问题,按照调试时的提示安装了 Microsoft C++ 扩展,这个时候调试可以正常执行,但是设置的断点无法打断。
0
1
0
浏览量140
米斯达

el-radio-button如何均等且自适应?

正常效果 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/d701d2f61376c6d4d76d107774ef8501.png) 放大效果 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/e0ceacf144823710adfd6756679fa097.png) 缩小效果 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/503e2a22e246e9c945f8f740b2572a05.png) el-radio-button如何均等且自适应,样式如何调整,目前是对每个button进行单独撑大,有什么简单的方法不 css样式 "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241015/281cb429852a63cbc48e5e97a2d6d65c.png)
0
1
0
浏览量169
米斯达

图片怎么不拉伸不裁剪的显示出来有好的解决方案吗?

请问,所有尺寸图片自适应怎么做到的,要做一个类似小红书的模块,用户上传一组图然后写一段文字发布,遇到的问题就是,用户上传的图片尺寸不可控,然后去参考了小红书。 它的处理是, 1.极端宽的先撑满屏幕宽度再等比缩放然后居中。 2.极端高的先撑满高度在等比缩放然后居中。 3.不是极端比例的撑不满的就居中放中间,能撑满的就撑满 我的需求就是这组图不拉伸不裁剪的显示出来,就好。 使用的是uniapp框架 其中要有很多处理, "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/ad6496741d97906867b2e0920ea7d403.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/42c01be17dd58435902ed29184d1631f.png) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241014/c0c508270b0c17766a7204663fb028ce.png)
0
1
0
浏览量150
米斯达

el-from怎么设置深层属性prop?

el-from怎么设置深层属性prop? 父组件 data: const formValue ={ detail: {file: [] }} 传参 prop设置值 : { props: 'detail.file' } 子组件 props是父组件传过来的值 props el-from怎么设置深层属性prop?
0
1
0
浏览量129
米斯达

amfile-3.7文件管理突然就不显示文件列表了?

amfile-3.7文件管理突然就不显示文件列表了? 最近一两周都没登录这个amh面板,也没有对服务器系统进行过任何操作。突然就变成这样了,重启了一下服务器,也仍然是这个情况。很诡异,它自己就出问题了。
amh
0
1
0
浏览量196
米斯达

遇到一个 ts 的问题,有更优雅的解决方案吗?

要求:尽量充分的利用类型推导,而不用额外写一写奇奇怪怪的东西。 问题点: 1. "func(str)" 有正常的类型推导,很完美; 2. "func(obj.bbb)" 为什么不能像前者一样? type VmsType = "2D" | "3D" | "lpo" | "lips"; function func(type: VmsType) { console.log("🚀 ~ func ~ type:", type); } const str = "2D"; const obj = { bbb: "2D" }; // ok func(str); // Argument of type 'string' is not assignable to parameter of type 'VmsType'. func(obj.bbb); "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241012/926eeac5380c2f3841e5e2943e5e92a9.png) 我知道可以下面两种办法: 1. 类型断言(Type Assertion)func(obj.bbb as VmsType) 2. 类型声明const obj: { bbb: VmsType } = { bbb: "2D" }; 我想知道有没有更好的办法?
0
1
0
浏览量188
米斯达

如何在 CSS 中模拟链接的移入效果?

一般最简单最常用的方法就是放大,可以用scale或transform的scale。如果不这样的话就麻烦了,因为这些兄弟元素都在文档流中,所以修改某一个元素,会影响其他的元素,那解决办法就是让他推理文档流,不影响其他元素,这要从基础布局设置上来修改,得不偿失。 .Goods-item:hover{ scale: 1 1.05; transform: translateY(-8px); } .Goods-item:hover{ transform: scale(1, 1.05) translateY(-8px); }
0
0
0
浏览量0
米斯达

如何实现空间不足折叠展示在下拉框中的效果?

插件是有,但是可能没法很好的嵌入你的系统,所以建议自己实现。 原理比较简单,计算每个元素的宽度,是否超过容器的宽度,如果超过,则将当前元素塞进弹出层,否则展示。 示例: // 这里为了简单,直接给单个元素和容器固定宽度,实际情况一般会需要动态获取宽度 const ITEM_WIDTH = 50; const CONTAINER_WIDTH = 200; const menus = ['元素', '控制台', '来源', '网络', '时间线']; const menuObj = menus.reduce( (acc, curr) => { // 已显示菜单项的总宽度 const visibleTotalWidth = acc.visibleMenus.length * ITEM_WIDTH; // 已显示菜单项的总宽度 加上 当前菜单项的宽度 const nextVisibleTotalWidth = visibleTotalWidth + ITEM_WIDTH; // 大于容器宽度,说明溢出了,将其放进额外菜单项数组中 if (nextVisibleTotalWidth > CONTAINER_WIDTH) { acc.extraMenus.push(curr); } else { acc.visibleMenus.push(curr); } return acc; }, { visibleMenus: [], extraMenus: [], } ); console.log('menuObj', menuObj); // extraMenus: Array[1] // 0: "时间线" // visibleMenus: Array[4] // 0: "元素" // 1: "控制台" // 2: "来源" // 3: "网络"
0
0
0
浏览量0
米斯达

vue3编译过程的调试,怎么才能调试啊?

最近发现vue3在在"mode"为"function"和"module"下有时候编译的结果不一样。 于是想调试一下vue3的编译过程,特别是插值表达式中"变量"被替换为诸如ctx.aa 这种的过程。 折腾了好久,发现只能调试"mode"为"function"时候的过程,在vite或者vue-cli项目中调试"mode"为"module",但是到模版的编译时候,只能看见openBlock 函数和setupBlock 函数,但是看不见render 函数的生成,也就是看不见编译中compile transform generate三个过程,不知道为啥。 有没有大佬在vite项目和vue-cli项目中能成功调试到编译过程的。
0
1
0
浏览量194
米斯达

PC端多屏适配,PC兼响应式H5项目实现方案?

我现在做的项目就是"PC+H5"两个兼容,采用的大概方案有如下2种供你参考 1.两套样式,html单独开发,js 80~95%复用 "PC"和"H5"是两套不一样的"UI","UI"代码也是两份,但是交互部分"80%"左右可以复用。 比如一个登录界面,"pc"用"element-ui","H5"用"vant"。html部分用两套代码进行实现,js部分就用"minix"进行混入共用,在不同组件的返回值做一些特殊处理即可。 «缺点:逻辑部分混用有非常多的判断处理,后期不太好维护» 2.自适应,html、js共用,css做样式变形、控件做封装处理 这个做法对设计师的能力要求较高,对开发者的能力要求也略高,不然代码写出来很臃肿 比如采用"栅格"或者"媒体查询"进行不同尺寸下的样式变化进行开发,代码都是一套。 «如果有下拉控件、日期控件等等,需要自行封装一个"自适应PC和H5的组件",内部做一个兼容处理。»
0
0
0
浏览量0
米斯达

关于《深入理解java虚拟机》阅读时候的问题?

第一个问题是关于三色标记的问题。 jvm 的 原始快照,如果一个黑色对象关联到一个新的白色对象。这个对象并不是从灰色对象逃脱的。不是也一样会产生对象消失吗?为什么说必须满足两个条件才会出现对象消失的问题。这样一样会导致不该被回收的标记为白色。 第二个是关于卡表和记忆集的问题。 卡表中变脏的卡页会加入GC Root ,是将整个卡页的对象加入GC Root 还是通过某种方式,筛选出卡页中有跨代引用的对象加入GC Root, 如果还要筛选,依据是什么呢?如果不筛选,这样是否会产生浮动垃圾? 第三个是关于写屏障解决伪共享的问题,为什么多一个判断就能解决伪共享的问题?
0
1
0
浏览量186
米斯达

angular6版本的项目启动后,发请求就报错?

后台管理系统启动正常,在登录页面点登录就报错(本人是熟悉vue,他这请求库不是axios也不是fetch): import { Http } from '@angular/http'; // 报错信息: app.service.ts:145 ERROR Error: Uncaught (in promise): TypeError: rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable.throw is not a function TypeError: rxjs__WEBPACK_IMPORTED_MODULE_2__.Observable.throw is not a function at CatchSubscriber.selector (http.service.ts:38:30) "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241007/8095fc8fb2d954303746552e18bbea68.png) 接口单独拿工具(postman或apifox等)测是正常的,也就是后端无问题也不是跨域问题。 初步判断是这个项目包版本的问题。我也不能大改不敢升级最新版,太多包是8年前的了。只能小改,如何改 "dependencies": { "@angular/animations": "^6.1.0", "@angular/common": "^6.1.0", "@angular/compiler": "^6.1.0", "@angular/core": "^6.1.0", "@angular/forms": "^6.1.0", "@angular/http": "^6.1.0", "@angular/platform-browser": "^6.1.0", "@angular/platform-browser-dynamic": "^6.1.0", "@angular/router": "^6.1.0", "@antv/data-set": "^0.8.9", "@antv/g2": "^3.5.7", "core-js": "^2.5.4", "essence-ng2-print": "^1.1.0", "ng-zorro-antd": "^1.6.0", "rxjs": "~6.2.0", "zone.js": "~0.8.26", "tinymce": "^5.0.2", "@tinymce/tinymce-angular": "^3.0.0" }, "image.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241007/8569f758e8aedd33928999c52514af6a.png) // app.service.ts 代码头如下: import { Injectable } from '@angular/core'; import { Http } from '@angular/http'; import { ActivatedRoute, Router } from '@angular/router'; //表单 绑定规则、控件组、响应式表单验证(驱动式表单验证) import { FormBuilder, FormGroup, Validators } from '@angular/forms'; //消息提示 import { NzMessageService, NzModalService } from 'ng-zorro-antd'; @Injectable() export class AppService { // http.service.ts 文件如下: import { Injectable } from '@angular/core'; import { Http, Request, RequestOptionsArgs, Response, RequestOptions, ConnectionBackend, Headers } from '@angular/http'; import { Observable } from 'rxjs'; import { map, catchError } from 'rxjs/operators'; @Injectable() export class HttpService extends Http { constructor(backend: ConnectionBackend, defaultOptions: RequestOptions) { super(backend, defaultOptions); } request(url: string | Request, options?: RequestOptionsArgs): Observable { //根据不同的生产环境配置http前缀 typeof url == 'string' ? url : url.url; return this.intercept(super.request(url, options)); } get(url: string, options?: RequestOptionsArgs): Observable { return this.intercept(super.get(url, options)).pipe(map(res => res.json())); } post(url: string, body: any, options?: RequestOptionsArgs): Observable { return this.intercept(super.post(url, body, this.getRequestOptionArgs(options))).pipe(map(res => res.json())); } put(url: string, body: any, options?: RequestOptionsArgs): Observable { return this.intercept(super.put(url, body, this.getRequestOptionArgs(options))); } delete(url: string, options?: RequestOptionsArgs): Observable { return this.intercept(super.put(url, this.getRequestOptionArgs(options))); } getRequestOptionArgs(options?: RequestOptionsArgs): RequestOptionsArgs { options = options == null ? new RequestOptions() : options; options.headers = options.headers == null ? new Headers() : options.headers; let token = localStorage.getItem('token'); options.headers.append('Content-Type', 'text/plain;charset=UTF-8'); options.headers.set('token', token); return options; } intercept(observable: Observable): Observable { return observable.pipe(catchError((err, source) => { return Observable.throw(err); })); } }
0
1
0
浏览量194
米斯达

现在的项目和后台不变,把之前的项目以及未来新的项目加进一个地址中,通过url后缀切换系统?

这种情况一般如何实现呢? 接口的话大概这样子: "http://192.168.1.12:6666/api1/111" (https://link.segmentfault.com/?enc=UYBAvhS%2BMxV5Mhxol8Bxjg%3D%3D.Rx%2F%2FjVg8tbQOqM2W6TLWtFgT9qdPsvOxRQHkoMxU7d1MsMrMjricgCUxfcCs5V1P) "http://192.168.1.12:6666/api2/222" (https://link.segmentfault.com/?enc=WkvzMRHk9svMy7suG9pVUA%3D%3D.OtiFGWasdauLzp%2BP32jFfYwfjY26CbS%2FqsIPO8TaD6sxGEWbzQs1bEzzsbLDrUep)
0
1
0
浏览量179
米斯达

Ant Design Vue 如何修改 a-table 的 header ?

Ant Design Vue 如何修改 a-table 的 header ? "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241006/bb819d81f8d68ad645a492d41f08498a.png) 比如我希望可以实现鼠标悬停在某个列名上,可以跳出一个 a-tooltip 来提示一些内容 我知道列值可以通过 "" 定制。但是我不知道怎么插槽到列头上? chatgpt 给了我下面的代码,用的是 "",但是没有效果 {{ column.title }} 哈哈 {{ column.description }} import { Table, Tooltip } from 'ant-design-vue'; export default { components: { 'a-table': Table, 'a-tooltip': Tooltip }, data() { return { data: [ { key: '1', name: 'John Brown', description: 'Description for John Brown' }, { key: '2', name: 'Jim Green', description: 'Description for Jim Green' }, { key: '3', name: 'Joe Black', description: 'Description for Joe Black' }, ], columns: [ { title: 'Name', dataIndex: 'name', key: 'name', description: 'This is the name column' }, { title: 'Age', dataIndex: 'age', key: 'age', description: 'This is the age column' }, ] }; } }; "图片.png" (https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241006/233b69031c299359e0400bc47daa9a77.png) *** 我的相关版本信息如下: { "name": "tracking-king", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint" }, "dependencies": { "@ant-design/icons-vue": "^7.0.1", "ant-design-vue": "^3.2.20", "axios": "^1.4.0", "core-js": "^3.8.3", "echarts": "^5.4.2", "element-plus": "^2.3.4", "vue": "^3.2.13", "vue-json-viewer": "^3.0.4", "vue-request": "^2.0.4", "vue-router": "^4.1.6" }, "devDependencies": { "@babel/core": "^7.12.16", "@babel/eslint-parser": "^7.12.16", "@vue/cli-plugin-babel": "~5.0.0", "@vue/cli-plugin-eslint": "~5.0.0", "@vue/cli-service": "~5.0.0", "eslint": "^7.32.0", "eslint-plugin-vue": "^8.0.3", "less": "^4.1.3", "less-loader": "^11.1.3" }, "eslintConfig": { "root": true, "env": { "node": true }, "extends": [ "plugin:vue/vue3-essential", "eslint:recommended" ], "parserOptions": { "parser": "@babel/eslint-parser" }, "rules": { "vue/multi-word-component-names": 0, "vue/no-unused-components": "off", "no-unused-vars": "off" } }, "browserslist": [ "> 1%", "last 2 versions", "not dead", "not ie 11" ] }
0
1
0
浏览量164
米斯达

VUE2头像上传后无法预览的解决方法?

请按照 "el-upload" 的 "flie-list" 参数方式来实现预览的效果。👉 "Upload 上传 - 组件 | Element" (https://link.segmentfault.com/?enc=TtKIXfV%2FDeb8Dqjvs34Qcg%3D%3D.vPChxFkvvODMwTpWnG%2B%2B9NM0MWWkyTTPt7wNYVoHeu21lVg49FiaJCtWbhapAbleko41FplVP7okuear2VfLVWzLKlJ6eXuo%2FFOCx%2BF0lrc%3D) 而不是直接在 "el-upload" 中使用 "img" 标签来展示。 提供一个已经封装好的图片上传组件来参考实现方式: = this.limit}" > 请上传 大小不超过 {{ fileSize }}MB 格式为 {{ fileType.join("/") }} 的文件 import { getToken } from "@/utils/auth"; export default { props: { value: [String, Object, Array], // 图片数量限制 limit: { type: Number, default: 5, }, // 大小限制(MB) fileSize: { type: Number, default: 5, }, // 文件类型, 例如['png', 'jpg', 'jpeg'] fileType: { type: Array, default: () => ["png", "jpg", "jpeg"], }, // 是否显示提示 isShowTip: { type: Boolean, default: true } }, data() { return { number: 0, uploadList: [], dialogImageUrl: "", dialogVisible: false, hideUpload: false, baseUrl: process.env.VUE_APP_BASE_API, uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", // 上传的图片服务器地址 headers: { Authorization: "Bearer " + getToken(), }, fileList: [] }; }, watch: { value: { handler(val) { if (val) { // 首先将值转为数组 const list = Array.isArray(val) ? val : this.value.split(','); // 然后将数组转为对象数组 this.fileList = list.map(item => { if (typeof item === "string") { if (item.indexOf(this.baseUrl) === -1) { item = { name: this.baseUrl + item, url: this.baseUrl + item }; } else { item = { name: item, url: item }; } } return item; }); } else { this.fileList = []; return []; } }, deep: true, immediate: true } }, computed: { // 是否显示提示 showTip() { return this.isShowTip && (this.fileType || this.fileSize); }, }, methods: { // 上传前loading加载 handleBeforeUpload(file) { let isImg = false; if (this.fileType.length) { let fileExtension = ""; if (file.name.lastIndexOf(".") > -1) { fileExtension = file.name.slice(file.name.lastIndexOf(".") + 1); } isImg = this.fileType.some(type => { if (file.type.indexOf(type) > -1) return true; if (fileExtension && fileExtension.indexOf(type) > -1) return true; return false; }); } else { isImg = file.type.indexOf("image") > -1; } if (!isImg) { this.$modal.msgError(`文件格式不正确, 请上传${this.fileType.join("/")}图片格式文件!`); return false; } if (this.fileSize) { const isLt = file.size / 1024 / 1024 f.name).indexOf(file.name); if (findex > -1) { this.fileList.splice(findex, 1); this.$emit("input", this.listToString(this.fileList)); } }, // 上传失败 handleUploadError() { this.$modal.msgError("上传图片失败,请重试"); this.$modal.closeLoading(); }, // 上传结束处理 uploadedSuccessfully() { if (this.number > 0 && this.uploadList.length === this.number) { this.fileList = this.fileList.concat(this.uploadList); this.uploadList = []; this.number = 0; this.$emit("input", this.listToString(this.fileList)); this.$modal.closeLoading(); } }, // 预览 handlePictureCardPreview(file) { this.dialogImageUrl = file.url; this.dialogVisible = true; }, // 对象转成指定字符串分隔 listToString(list, separator) { let strs = ""; separator = separator || ","; for (let i in list) { if (list[i].url) { strs += list[i].url.replace(this.baseUrl, "") + separator; } } return strs != '' ? strs.substr(0, strs.length - 1) : ''; } } }; // .el-upload--picture-card 控制加号部分 ::v-deep.hide .el-upload--picture-card { display: none; } // 去掉动画效果 ::v-deep .el-list-enter-active, ::v-deep .el-list-leave-active { transition: all 0s; } ::v-deep .el-list-enter, .el-list-leave-active { opacity: 0; transform: translateY(0); }
0
0
0
浏览量0
米斯达

Vue2 v-if与v-else-if双条件渲染问题?

只可能是 "msg_unit" 或者 "msg_unit_action" 的值有问题,可以在外部输出一下 "item" 整个对象出来看看各个属性值是否正确。
0
0
0
浏览量0

履历