- 博客(18)
- 收藏
- 关注
原创 Web实验课程报告
一、实验内容 本学期web实验课我做了两方面的内容,一方面是有机农场管理系统的继续完善,另一方面是系统模块功能的展,实现利用Cookie的登录注册功能。 仔细研究了去年的web项目,在有机农场管理系统的基础上更改了原系统的CSS和HTML等,使界面更加美观。又在原系统基础上扩展了登录功能,实现了登录注册功能。并且利用了cookie识别用户的身份。二、实验目的 掌握...
2019-12-26 09:48:57
6480
原创 Web阶段性技术文档(三)
一、Ajax设置请求和接收响应1、JS设置任意请求一个http请求分为四个部分请求行,请求头,回车,请求体设置请求的四个部分(第三部分为回车):第一部分 request.open('get', '/xxx')第二部分 request.setRequestHeader('content-type','x-www-form-urlencoded')第四...
2019-12-25 21:51:04
224
原创 Web阶段性技术文档(二)
一、Ajax学习与理解1、如何发请求?用 form 可以发请求,但是会刷新页面或新开页面。用 a 可以发 get 请求,但是也会刷新页面或新开页面。用 img 可以发 get 请求,但是只能以图片的形式展示。用 link 可以发 get 请求,但是只能以 CSS、favicon 的形式展示。用 script 可以发 get 请求,但是只能以脚本的形式运行。&...
2019-12-25 21:49:46
226
原创 Web阶段性技术文档(Cookie)
一、基本概念的学习1、什么是CookieCookie 是服务器保存在浏览器的一小段文本信息。浏览器每次向服务器发出请求,就会自动附上这段信息。Cookie 就是这么简单,这就是 Web 开发里 Cookie 的含义。2、Cookie的作用(1)Cookie 主要用来分辨两个请求是否来自同一个浏览器(2)用来保存一些状态信息,例如:a.对话(sessio...
2019-12-25 11:55:52
475
转载 算法实现题 (用c++文件输入输出)
算法实现题 统计数字问题问题描述: 一本书的页码从自然数1 开始顺序编码直到自然数n。书的页码按照通常的习惯编排,每个页码都不含多余的前导数字0。例如,第6 页用数字6 表示,而不是06 或006 等。数字计数问题要求对给定书的总页码n,计算出书的全部页码中分别用到多少次数字0,1, 2,…,9。编程任务: 给定表示书的总页码的10 进制整数n (1...
2019-05-21 20:56:01
2031
原创 461 Hamming Distance
The Hamming Distance between two integers is the number of positions at which the corresponding bits are different.Given two integers x and y, calculate the Hamming distance. Note:0 ≤ x, y <...
2018-08-08 16:07:29
92
原创 136 single number
Given an array of integers, every element appears twice except for one. Find that single one. 给出一个整数数组,除了某个元素外所有元素都出现两次。找出仅出现一次的数字。Note: Your algorithm should have a linear runtime complexity. Co...
2018-08-04 10:06:02
139
原创 455 Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most one cookie. Each child i has a greed factor gi, which is the minimum size of a coo...
2018-07-31 16:22:07
99
原创 476 Number Complement
Given a positive integer, output its complement number. The complement strategy is to flip the bits of its binary representation.Note:The given integer is guaranteed to fit within the range of a 3...
2018-07-31 16:21:26
133
原创 696 Count Binary Substrings
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in these substrings are grouped consecutively.Substri...
2018-07-31 16:20:40
109
原创 566 Reshape the Matrix
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.You're given a matrix represented by a two-dimen...
2018-07-31 16:19:54
126
原创 693 Binary Number with Alternating Bits
Given a positive integer, check whether it has alternating bits: namely, if two adjacent bits will always have different values.Example 1:Input: 5Output: TrueExplanation:The binary represent...
2018-07-31 16:19:05
129
原创 507 Base 7
Given an integer, return its base 7 string representation.Example 1:Input: 100Output: "202" Example 2:Input: -7Output: "-10" Note: The input will be in range of [-1e7, 1e7]. 这道题给...
2018-07-31 16:18:18
89
原创 697 degree of an array
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.Your task is to find the smallest possible length of a ...
2018-07-31 16:17:27
124
原创 763 Partition Labels
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one part, and return a list of integers representing th...
2018-07-31 16:16:33
310
原创 766 Toeplitz Matrix
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz. Example 1:Input: matrix =...
2018-07-31 16:15:24
135
原创 283 Move Zeroes
Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your fun...
2018-07-31 16:13:20
94
原创 Array
js中数组的每一项可以保存任何类型的数据,而且数组的大小是可以动态调整的,可以随数据的添加自动增长以容纳新数据。创建数组有两种方法var arr1 = newArray(); //创建一个空数组var arr2 = newArray(20); // 创建一个包含20项的数组var arr3 = newArray("lily","lucy","Tom"); // 创建一个包含3个字符串的数组var...
2018-03-26 18:35:21
289
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人