ICode9

精准搜索请尝试: 精确搜索
  • Java ArrayList 使用和常见面试题2020-12-21 16:32:56

    继承关系 ArrayList 类是一个可以动态修改的数组,与普通数组的区别就是它是没有固定大小的限制,我们可以添加或删除元素。 ArrayList 继承了 AbstractList ,并实现了 List 接口。 类的导入 import java.util.ArrayList; // 引入 ArrayList 类 ArrayList<E> objectName =new Arr

  • JAVA日报2020-12-19 12:01:06

    ArrayList 的应用 import java.util.ArrayList;public class RunoobTest {    public static void main(String[] args) {        ArrayList<String> sites = new ArrayList<String>();        sites.add("Google");        sites.add("Runoob")

  • vue.js get current url2020-12-02 09:04:49

    在vue.js中,获取当前页面的URL:   var url = window.location.href; // Returns full URL (http://localhost:13336/Sites/newslist.html?t=c&tv=1) var pathname = window.location.pathname; // Returns path only (/Sites/newslist.html)

  • redmine系统部署2020-11-19 18:03:32

    1.下载railsinstaller。注意版本,我用的是老版的 railsinstaller-3.2.0.exe 下载地址 http://railsinstaller.org/en 国外的网站比较慢,耐心等待。 2.下载好了exe安装包,直接双击打开,下一步一直点下去。(所有的选项都是默认就可以)。 3.安装OK之后,基本的运行环境就算就绪了。在C盘的根

  • AngularJS 两种包含方式2020-10-22 18:03:54

    服务端包含大多服务端脚本都支持包含文件功能 (SSI: Server Side Includes)。 使用 SSI, 你可在 HTML 中包含 HTML 文件,并发送到客户端浏览器。 PHP 实例<?php require("navigation.php"); ?>客户端包含通过 JavaScript 有很多种方式可以在 HTML 中包含 HTML 文件。 通常我们使用 h

  • dcoker容器之间怎么访问2020-07-29 15:33:36

    通过 docker inspect 命令,我们可以获取镜像的详细信息,其中,包括创建者,各层的数字摘要等。 https://developpaper.com/the-method-of-using-nginx-to-proxy-multiple-application-sites-in-docker/

  • 菜鸟教程的 mysql-connector 基础2020-06-03 16:01:47

    安装驱动 python -m pip install mysql-connector 导包 import mysql.connector mydb = mysql.connector.connect( host="localhost", # 数据库主机地址 user="root", # 数据库用户名 passwd="root" # 数据库密码 ) 创建游标 mycursor = mydb.cur

  • JSON 数组2020-05-16 09:53:28

    数组作为 JSON 对象 实例 [ "Google", "Runoob", "Taobao" ] JSON 数组在中括号中书写。 JSON 中数组值必须是合法的 JSON 数据类型(字符串, 数字, 对象, 数组, 布尔值或 null)。 JavaScript 中,数组值可以是以上的 JSON 数据类型,也可以是 JavaScript 的表达式,包括函数,日期,及 und

  • js 下载文件2020-03-12 09:55:52

    window.open()只能打开一次,所以下载多个文件只能下载一个function download(name, href) { var a = document.createElement("a"), //创建a标签 e = document.createEvent("MouseEvents"); //创建鼠标事件对象 e.initEvent("click", false, false); //初始化事件对象

  • Perl 数组_52020-03-02 15:05:52

    Perl 数组一个是存储标量值的列表变量,变量可以是不同类型。 数组变量以 @ 开头。访问数组元素使用 $ + 变量名称 + [索引值] 格式来读取,实例如下: #!/usr/bin/perl @hits = (25, 30, 40); @names = ("google", "runoob", "taobao"); print "\$hits[0] = $hi

  • Python3.X 线程中信号量的使用方法示例2020-02-20 22:39:15

    信号量semaphore 是一个变量,控制着对公共资源或者临界区的访问。信号量维护着一个计数器,指定可同时访问资源或者进入临界区的线程数。下面这篇文章主要给大家介绍了关于Python3.X 线程中信号量的使用方法,需要的朋友可以参考借鉴,下面来一起看看吧。 前言 最近在学习python,发

  • How does CRM middleware knows which sites are interested with CRM local changes2020-01-26 19:44:01

    You could see the following BDOC in CRM which means the BDOC will be sent to multiple external sites besides ERP. So how does CRM middleware knows which external sites must be sent with BDOC? Basically speaking it is based on subscribe - publish mechan

  • autojs,autojs 发送http请求,autojs 解析json数据2020-01-13 14:04:35

    如题,我这个就直接上代码吧 (function () { let request = http.request; // 覆盖http关键函数request,其他http返回最终会调用这个函数 http.request = function () { try { // 捕捉所有异常 return request.apply(http, arguments)

  • docker windows下挂载目录和文件2019-09-02 15:01:11

    我们利用docker启动项目的时候不能直接修改容器中的内容,只能在  run  的时候挂载到本地目录或者文件来进行修改. 例子:(路径可以忽略斜杠和反斜杠,我这边没有使用windows的路径没有报错.使用的是      这个版本.   ) docker run -v c:\Sites\redmine-3.4.5\config\routes

  • 在ubuntu上安装支持ssl的apache2019-07-24 12:38:36

    原文链接:http://www.cnblogs.com/timke/archive/2007/11/11/955606.html 安装apache: $ sudo apt-get install apache2 然后访问http://hostname/确认安装成功. 让apache支持ssl: $ sudo apache2-ssl-certificate $ cd /etc/apache2/ $ sudo cp sites-av

  • Nginx 使用及配置2019-07-23 12:43:41

        Nginx 目录 $ cd /etc/nginx $ ls -l total 60 drwx------ 2 ubuntu ubuntu 4096 Jun 16 09:27 cert ## ssl证书目录 drwxr-xr-x 2 root root 4096 Jul 12 2017 conf.d -rw-r--r-- 1 root root 1077 Feb 11 2017 fastcgi.conf -rw-r--r-- 1 root root

  • Sharepoint customaztion and frontpage 2003 resource2019-06-21 19:53:02

    Technet: Using FrontPage 2003 to Design Customized Web Sites Created with SPS 2003 (11/2003) A white paper on Microsoft's TechNet Site on using FrontPage 2003 to customize SPS 2003 portals. Technet: Using FrontPage 2003 to Design Customized W

  • 子域名搜集2019-06-11 18:01:58

    爬虫(使用搜索引擎|如baidu) #coding=utf-8import reimport requestssites = []for i in range(0,10): #10页为例 i = i*10 url = 'https://www.baidu.com/s?wd=site:xxx.com.cn&pn=%s' %i #设定url请求 response = requests.get(url).content #get请求,content

  • 吴裕雄--天生自然 PYTHON3开发学习:MongoDB2019-06-03 09:43:46

    import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/")mydb = myclient["runoobdb"] import pymongo myclient = pymongo.MongoClient('mongodb://localhost:27017/') dblist = myclient.list_database_names()# dbl

  • JavaScript小白教程32019-06-01 17:42:41

    JavaScript表单 1:可以用JavaScript代码进行表单验证 2:H5新出的属性,用于表单数据验证 服务端数据验证是在数据提交到服务器上后再验证。 客户端数据验证 side validation是在数据发送到服务器前,在浏览器上完成验证。 前端过滤不顶个屁用,抓包可以直接过滤掉。 <script>function vali

  • js点击删除当前项,并把删除的哪行放到数组的第一个2019-05-20 16:49:31

    <!DOCTYPE html><html><head> <meta charset="utf-8"> <title>Vue 测试</title> <script src="https://cdn.staticfile.org/vue/2.2.2/vue.min.js"></script></head><body><div id=&quo

  • Ubuntu系统Apache 2部署SSL证书2019-04-10 11:39:43

    Ubuntu系统Apache 2部署SSL证书 本文档为您介绍了如何在Ubuntu系统以及Apache2中安装阿里云SSL证书。 环境准备 操作系统:Ubuntu Web服务器:Apache 2 前提条件 已从SSL证书控制台下载Apache服务器证书。 已安装Open SSL。 操作步骤 运行以下命令在apache2目录下创建ssl目录。

  • Ubuntu系统Apache 2部署SSL证书2019-03-17 13:43:35

    几天前用Apache 2部署了一个静态网页,但通过域名访问时Google提示“不安全”,经了解,原来是缺少证书。 什么是SSL证书? SSL 是指安全套接字层,简而言之,它是一项标准技术,可确保互联网连接安全,保护两个系统之间发送的任何敏感数据,防止网络犯罪分子读取和修改任何传输信息,包括个人资料。两

  • Apache2配置多域名站点及支持https2019-03-01 17:03:47

    0x00 预备条件 申请SSL证书 建立对应站点目录 开放443端口 0x01 配置sites-available文件 执行 vi /etc/apache2/sites-available/zecoc.conf 内容如下: <VirtualHost *:443> ServerAdmin webmaster@localhost ServerName zecoc.com ServerAlias www.zecoc.com forum.zecoc.com

  • 删除离线DC2019-02-27 17:55:42

    在域控DC1上删除已脱机的ad1域控 Microsoft Windows [版本 5.2.3790](C) 版权所有 1985-2003 Microsoft Corp. C:\Documents and Settings\Administrator>cd\ C:\>ntdsutilntdsutil: metadata cleanupmetadata cleanup: select operation targetselect operation target: connectio

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有