找到约 10000 条结果
  • Facebook Docusaurus 中文文档 启用搜索
    Docusaurus 支持使用 Algolia DocSearch 进行搜索。 一旦你建立了你的网站,输入你的网站信息 来让 Algolia 抓取你网站的文档页面。 Algolia 会向您发送您的网站的 API 密钥和索引名称。
    2018-01-18
  • Vue + Webpack 学习随手笔记 - 让路由页延迟(按需)加载
    拿购物商城的Webapp作为例子举例。下面的导航条很明显是一个带有路由功能的模块,通过配置路由,router的index.js可以如下配置:
    2018-09-10
  • [LeetCode] 搜索已排序的旋转数组
    题目:Search in Rotated Sorted Array Total Accepted: 11248 Total Submissions: 40041 My Submissions
    2014-04-04
  • iOS支付宝2.3.3SDK集成开发(Swift1.2)
    运行环境 系统:OS X Yosemite 10.10.3 IDE :Xcode 6.4 语言:Swift 1.2 添加支付宝SDK2.2.3 集成开发包下载链接 新建一个文件夹,命名为AliSDK2_2_3 AliSDK2_2_3包含: Util、openssl、libssl.a、libcrypto.a、AlipaySDK.bundle、AlipaySDK.framework、APAuthV2Info.h、APAuthV2Info.m、Order.h、Order.m。 把AliSDK2_2_3添...
    2015-09-10
  • [Leetcode] Binary Search Tree Iterator 二叉搜素树迭代器
    Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number in the BST. Note: next() and hasNext() should run in average O(1) time and uses O(h) memory, where h is the height of the tree.
    2015-09-26
  • [python] 文件夹所有文件读取,正则化,json使用
    今天做了把参数文件和对应的图片文件结合,进行处理的工作,用到了读取文件名、正则化(名字对应)、json。读取文件下文件os.listdir(path)是得到在path路径下所以文件的名称列表。open(path)是打开某个文件。 {代码...} 正则表达式匹配 {代码...} json.loads V.S. json.loadjson.loads()解码python json格式json.load()...
    2021-08-12
  • JavaScript 单行代码合集
    javascript 工作中常用单行代码汇总交换两个变量 {代码...} 生成随机字符串 {代码...} 转义HTML特殊字符 {代码...} 判断邮箱 {代码...} 手机号码 {代码...} 是否为null {代码...} 是否undefined {代码...} 是否是数组 {代码...} 是否是移动端 {代码...} 去除html标签 {代码...} 获取url参数 {代码...} 删除数组中的重复...
    2022-05-05
  • COMP3910: Coursework 2
    COMP3910: Coursework 2Submission: GradescopeDeadline: 17:00 GMT, Friday 25 March 2022Award: This piece of summative coursework is worth 10% of your gradeProblem 1 (modelling) [12 marks]A company needs to purchase components X and Y to produce toys. Components X and Y canbe purchased from three su...
    2022-03-25
  • 技术解析 | 适用于TeamCity的Unreal Engine支持插件,提升游戏构建效率
    龙智是JetBrains授权合作伙伴、Perforce授权合作伙伴,为您提供TeamCity、Perforce Helix Core等热门的游戏开发工具及一站式服务,欢迎咨询:400-666-7732、marketing@shdsd.com。
    2025-02-19
  • MySQL 主键索引等值查询加什么锁
    本文基于 MySQL 8.0.32 源码,存储引擎为 InnoDB。  1. 准备工作  创建测试表:  CREATE TABLE t1 (  id int unsigned NOT NULL AUTO_INCREMENT,  i1 int DEFAULT '0',  PRIMARY KEY (id) USING BTREE,  KEY idx_i1 (i1)  ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3;  插入测试数据:  INSERT INTO t...
    2024-10-06
  • 一步一步搭建react应用-爬取豆瓣电影的电影信息
    自己写表单录入电影信息比较费劲,所以选择爬取豆瓣电影的信息主要爬取电影的封面、主演、年份、产地、简介等信息。前端有个输入框,输入电影名然后去爬取电影信息录入到MongoDB中
    2017-09-09
    1
  • 使用history保存列表页ajax请求的状态
    问题 最近碰到两个问题: 从首页进入列表页之后,点击下一页的时候,使用ajax请求更新数据, 然后点击浏览器“后退”按钮就直接返回到首页,实际这里想要的效果是返回列表页上一页。 在列表页分页为2的页面进入详情页,然后点击“后退”按钮,返回的事列表页分页为1的页面。没法记住之前分页状态。 优化前代码 代码如下,在...
    2018-01-19
  • 分布式搜索引擎ElasticSearch之高级运用(四)
    一、如何优化多字段查询1. 提升字段查询得分:将title字段查询比重提升10倍: {代码...} 得分系数提升了10倍:2. 综合提升字段查询得分:使用tie_breaker将其他query的分数也考虑进去 {代码...} 使用 tie_breaker 和不使用查询出来的某一条数据的 _score 分数,会有相应的提高,例如:title 中包含关键词matched query ...
    2021-03-24
  • FIT5042 网络开发
    Assignment Background and Description FIT5042 Assignment comprises three deliverables: Design Report, Java EE webapplication, Research Report. These are all individual based deliverables.You are required to build a web-based Java prototype of a Banking Enterprise Applicationwith Java enterprise t...
    2021-10-23
  • COMP281 难点讨论
    COMP281 2020-2021 – Assignment 2• In the following, you will find the problems that constitute Assignment 2. They will be also availableon the online judging (OJ) system available at [链接]• You need to write a C program (not C++ or C#) that solves each problem – it must read the input, asspecifi...
    2022-02-23
  • Docker-镜像
    一、镜像(image)介绍 {代码...} 二、镜像的命令(这里小编总结常用的)2.1、镜像的搜索作用:搜索Docker Hub上的镜像命令格式:docker search [参数] 镜像名称参数:-f,--filter filter根据提供的格式筛选结果--format string 利用go语言和format格式化输出结果--limit int 展示最大的结果数,默认25个,--no-trunc 内容全...
    2023-03-22
  • Android Flutter 多实例实践
    Flutter CLI 工具支持将 Flutter Module 打包成 Android AAR 包以供外部依赖使用,即 Flutter AAR。在一个没有使用 Flutter 技术栈的 Android 工程中集成 Flutter AAR 是没有任何问题的,但如果目标工程本身已经使用了 Flutter 框架,在此基础上再接入 Flutter AAR 就会失败,我们称之为 Flutter 多实例问题。本文主要介...
    2021-07-23