JavaScript 的使用 第1章 JavaScript起源 1.1 起源 N年前 拨号上网,网速很慢,数据提交到服务器端验证,体验很差 于是,就有人在想:能不能让这些数据在浏览器端验证呢? 20世纪90年代 1995年,由Netscape公司的Brendan Eich,在网景导航者浏览器上首次设 ...
分类:
编程语言 时间:
2020-01-30 17:14:43
阅读次数:
82
Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographically ...
分类:
其他好文 时间:
2020-01-30 09:47:14
阅读次数:
94
import re #正则表达式是用来干什么的?匹配字符串 #首先回顾一下字符串的使用方法。 # s = "hello world" # print(s.find("e")) #查找 # ret = s.replace("ll","xx") # print(ret) # print(s.split( ...
分类:
编程语言 时间:
2020-01-29 21:25:00
阅读次数:
111
Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rules: Ra ...
分类:
其他好文 时间:
2020-01-29 10:28:22
阅读次数:
74
链接: "LeetCode648" 在英语中,有一个叫做?词根(root)的概念,它可以跟着其他一些词组成另一个较长的单词——我们称这个词为?继承词(successor)。例如,词根an,跟随着单词?other(其他),可以形成新的单词?another(另一个)。 现在,给定一个由许多词根组成的词典 ...
分类:
其他好文 时间:
2020-01-27 20:38:51
阅读次数:
85
题目如下: Given a palindromic string palindrome, replace exactly one character by any lowercase English letter so that the string becomes the lexicographi ...
分类:
其他好文 时间:
2020-01-27 19:23:10
阅读次数:
72
题目如下: Given an array of integers arr, replace each element with its rank. The rank represents how large the element is. The rank has the following rul ...
分类:
其他好文 时间:
2020-01-27 19:03:33
阅读次数:
71
/* 全选/全不选 */ function selectAll(objSelect) { if (objSelect.checked == true) { $("input[name='chkId']").attr("checked", true); $("input[name='chkAll']" ...
分类:
Web程序 时间:
2020-01-27 00:00:24
阅读次数:
78
1.单表的:update user set name = (select name from user where id in (select id from user where name='小苏')); update goods set name = REPLACE(name ,' ','') ...
分类:
数据库 时间:
2020-01-24 23:47:39
阅读次数:
179
# 字符串的使用 # 字符串里的元素:单个字母、字符串取值数字、汉字、单个符号都是一个元素 # len(数据)统计数据长度print(len(s)) # 字符串取值:字符串名[索引值] # 索引从左至右是0、1、2、3....,从右往左是-1、-2、-3.... # s = "hello!" # p ...
分类:
其他好文 时间:
2020-01-24 17:23:03
阅读次数:
75