2021年3月5日
摘要:
当输入一个整数时,打印的图形如下: 1 2 3 4 5 6 7 8 9 10 ...... #include<stdio.h> #include<stdlib.h> int main() { int a=1, b,n,c=1; scanf("%d", &n); while (a <= n) { b
阅读全文
posted @ 2021-03-05 14:16
ScottJS
阅读(817)
推荐(0)
摘要:
这是一个非常简单的c程序,但是需要注意的是,当用Sleep()语句的时候,再代码最开始必须加上#include<windows.h>,此方法只在windows系统下有效 #include<stdio.h> #include<stdlib.h> #include<Windows.h> int main
阅读全文
posted @ 2021-03-05 08:39
ScottJS
阅读(2367)
推荐(0)
2021年3月4日
摘要:
#include<stdio.h> #include<stdlib.h> int main() { int a, i,s; scanf("%d", &a); i = 1; s = 1; while (i <= a) { s = s * i; i++; } printf("%d", s); retur
阅读全文
posted @ 2021-03-04 17:16
ScottJS
阅读(1183)
推荐(0)
2020年7月13日
摘要:
事件委派就是把子元素的事件绑定在父元素身上,通过判断事件目标的不同,做不同的事 e.target; 以下为事件委派的案例: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" con
阅读全文
posted @ 2020-07-13 16:54
ScottJS
阅读(329)
推荐(0)
摘要:
当鼠标移入的时候,里面的文字和背景颜色均发生改变,通过js的类名控制该结构 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width
阅读全文
posted @ 2020-07-13 16:08
ScottJS
阅读(123)
推荐(0)
2020年7月2日
摘要:
说明:点击下方供选标签,可以将标签内容添加到方框中,点击方框中的叉号可以移除标签,并且标签不能重复添加 具体效果如图所示: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" con
阅读全文
posted @ 2020-07-02 17:24
ScottJS
阅读(383)
推荐(0)
摘要:
思路:先写一个结构和样式,然后写本月的时间,之后计算上下月份的关系 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, in
阅读全文
posted @ 2020-07-02 13:55
ScottJS
阅读(372)
推荐(0)
2020年6月30日
摘要:
利用jQuery创建一个简单的表格,并添加一个简单的删除按钮 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initi
阅读全文
posted @ 2020-06-30 14:34
ScottJS
阅读(252)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
posted @ 2020-06-30 10:43
ScottJS
阅读(117)
推荐(0)
摘要:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document<
阅读全文
posted @ 2020-06-30 08:17
ScottJS
阅读(199)
推荐(0)