一、js中的this不一定是自我; 案例一: 注:1、从上面的代码看出,同一个函数可以从不同的角度来调用,this并不一定是函数本身所属的对象。this只是在任意对象和function元素结合时的一个概念,这种结合比起一般对象语言的默认结合更加灵活显得更加灵活和洒脱。 2、在js中,只能把this看 ...
分类:
其他好文 时间:
2019-10-30 18:12:30
阅读次数:
80
Js的引入 由于单纯的html和css是没有动态的效果的,所以为了增加动画效果,当让js也可以做一些验证的工作。 实例 我就将我练习的简单例子列一下,方便日后查看。 test1: test2: test3: test4: test5: test6: test7: test8: test9: test ...
分类:
Web程序 时间:
2019-10-30 18:02:09
阅读次数:
115
一、首先进入:/usr/local/bin 文件夹下,编写start-cluster.sh脚本 vim start-cluster.sh (需要root权限) 下面的各个节点的信息根据自身情况进行修改 保存,退出。修改执行权限 chmod 777 start-cluster.sh 运行: 二、编写s ...
分类:
系统相关 时间:
2019-10-29 22:05:03
阅读次数:
240
http://poj.org/problem?id=2096 Description Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he ...
分类:
其他好文 时间:
2019-10-29 21:48:10
阅读次数:
113
Experiment 22 - Monte Carlo SimulationDepartment of Electrical Engineering & ElectronicsSeptember 2019, Ver. 3.4Experiment specificationsModule(s) ELE ...
分类:
其他好文 时间:
2019-10-27 21:09:53
阅读次数:
92
#pragma GCC optimize(3) #pragma GCC target("avx") #pragma GCC optimize("Ofast") #pragma GCC optimize("inline") #pragma GCC optimize("-fgcse") #pragma ...
分类:
其他好文 时间:
2019-10-27 19:10:59
阅读次数:
95
#!/bin/bash #Deny specified IP access #IP:who is fail to login sever SECURE_LOG=/var/log/secure #通过secure文件进行过滤得出登陆密码失败超过15次的IP地址 IP_ADDR= `cat /var/l... ...
分类:
其他好文 时间:
2019-10-27 16:57:33
阅读次数:
73
题目: There are a number of people who will be attending ACM ICPC World Finals. Each of them may be well versed in a number of topics. Given a list of t ...
分类:
其他好文 时间:
2019-10-24 13:58:56
阅读次数:
110
$ whoami a converter that convert caffeine into code. ...
分类:
其他好文 时间:
2019-10-24 13:16:10
阅读次数:
51
参考:https://github.com/alibaba/uirecorder/blob/master/README_zh-cn.md 1. 安装nodejs https://nodejs.org/ 这里下载 安装(???忘了执行,貌似不需要也可以正常录制) sudo chown -R $(who ...
分类:
其他好文 时间:
2019-10-22 20:33:36
阅读次数:
74