巴拉米 巴拉米
4年前
bind、call、apply 区别?如何实现一个bind?
一、作用call、apply、bind作用是改变函数执行时的上下文,简而言之就是改变函数运行时的this指向那么什么情况下需要改变this的指向呢?下面举个例子var name"lucy";const obj{    name:"martin",    say:function (){        co
Wesley13 Wesley13
3年前
android获取mac地址
1、<usespermissionandroid:name"android.permission.ACCESS_WIFI_STATE"/ 2、privateStringgetLocalMacAddress(){WifiManagerwifi(WifiManager)getSystemSe
Wesley13 Wesley13
3年前
Mysql设置sort_buffer_size
sort\_buffer\_sizemysqlshowvariableslike‘%sort\_buffer\_size%’; ——————————— |Variable\_name|Value| ——————————— |innodb\_sort\_buffer\_size|1048576
Easter79 Easter79
3年前
SQOOP导入mysql数据库乱码
一、mysql中的编码mysql show variables like 'collation_%';| Variable_name | Value |
Stella981 Stella981
3年前
50款JavaScript图表库分享
jqPlot(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.jqplot.com%2F):一款jquery绘图和图表插件、使用简单、提供了丰富的示例和强大的功能,而且开源。!jqPlot(http://static.oschina.net/uploads/img/
Stella981 Stella981
3年前
Ajax传值以及接受传值,@ResPonseBody 和 @RequestBody
Ajax对于Java编程人员开说可是很重要的,可以说是必会的。<!DOCTYPEhtml<htmllang"en"<head<metacharset"UTF8"<titleTitle</title<!第一步:引入Jquery的地址(相当于下载js源代码,跟引入jar包一样)<scr
Wesley13 Wesley13
3年前
Java工程里的常量类
/系统名/publicstaticfinalStringOS_NAMESystem.getProperty("os.name");/Java版本/publicstaticfinalStringJAVA_
Easter79 Easter79
3年前
TextView中使用链接打开Activity
Activity加入intentfilter支持<activityandroid:name"TestActivity"<intentfilter<dataandroid:host"yourhost"android:scheme"testschema"/<
Stella981 Stella981
3年前
Python计算大文件行数方法及性能比较
如何使用Python快速高效地统计出大文件的总行数,下面是一些实现方法和性能的比较。1.readline读所有行使用readlines方法读取所有行:defreadline_count(file_name):returnlen(open(file_name).readlines())
Wesley13 Wesley13
3年前
mysql 插入数据
简单用法:insertintotb\_name(字段1,字段2,.........)values(值1,值2,.....)注意,字段个数必须和值的个数一致。字符用引号引起来,数字不用,插入空值使用null批量插入:insertintotb\_name(字段1,字段2,.........)values(值1,值2,.....