zoukankan      html  css  js  c++  java
  • 新工作——学习笔记

    1、document.write

    <script type="text/javascript">
    var str="Hello world!"
    document.write(str.indexOf("Hello") + "<br />")
    document.write(str.indexOf("World") + "<br />")
    document.write(str.indexOf("world"))


    </script>

    以上代码的输出:

    0
    -1
    6

    2、SSH配置
    spring配置文件配置在struts-config.xml中,struts-config.xml及其分struts-config文件配置在web.xml中;其他的spring子文件需要通过<import resource="../classes/com/crfchina/aps/service/applicationContext_aps_common.xml" />引入到配置在struts-config.xml中的spring文件中,因为主spring配置文件不一定叫applicationContext
    List、Set、Map
    JAVA的容器---List,Map,Set
    Collection
    ├List
    │├LinkedList
    │├ArrayList
    │└Vector
    │ └Stack
    └Set
    Map
    ├Hashtable
    ├HashMap
    └WeakHashMap

    Collection是最基本的集合接口,一个Collection代表一组Object,Java SDK不提供直接继承自Collection的类,Java SDK提供的类都是继承自Collection的“子接口”如List Set,区别在于List是有序的Collection,且其中允许重复的元素,比如我们常用的Vector,ArrayList,LinkedList,都是实现了List接口的类;而Set是一种不包含重复的元素的Collection。
    Map没有继承Collection接口,Map提供key到value的映射。一个Map中不能包含相同的key,每个key只能映射一个 value。HashMap是实现了Map接口的具体类。

  • 相关阅读:
    python3文件操作
    python3复习
    python3集合
    python购物车
    python小知识点总结
    python-review01
    python字典
    04day->python列表和元祖
    python字符串操作
    《令人拍案称奇的Mask RCNN》
  • 原文地址:https://www.cnblogs.com/Defry/p/4512698.html
Copyright © 2011-2022 走看看