首先要声明一下:一般情况下,修改MySQL密码,授权,是需要有mysql里的root权限的。 注:本操作是在WIN命令提示符下,phpMyAdmin同样适用。 用户:phplamp 用户数据库:phplampDB 1.新建用户。 //登录MYSQL @>mysql -u root -p @>密码 / ...
分类:
数据库 时间:
2017-11-04 13:24:11
阅读次数:
163
jquery复习--选择器 jquery复习--选择器 jquery复习--选择器 jquery复习--选择器 一,基本选择器 1,id 选择器 var $div = $("#idName"); 和DOM的document.getElementById("id"); 2,class类选择器 var ...
分类:
Web程序 时间:
2017-11-03 21:59:25
阅读次数:
218
言而简之,面向对象编程就是把函数编程外面包装一个class类,然后再把这个class类指向一个对象 而class类中的函数在这里称为方法 举个例子: 用函数式编程写出一键发送邮件的脚本: 用面向对象编程写出一键发送邮件的脚本: 不难发现,面向对象编程比普通的函数编程多了一个参数 self,那这个 s ...
分类:
编程语言 时间:
2017-11-03 19:04:54
阅读次数:
298
1.动态id定位不到元素for example: //WebElement xiexin_element = driver.findElement(By.id("_mail_component_82_82")); WebElement xiexin_element = driver.findElem ...
分类:
Web程序 时间:
2017-11-03 16:16:05
阅读次数:
206
一级缓存: 也称本地缓存,sqlSession级别的缓存。一级缓存是一直开启的;与数据库同一次回话期间查询到的数据会放在本地缓存中。 如果需要获取相同的数据,直接从缓存中拿,不会再查数据库。 一级缓存失效的四种情况: 1.sqlSession不同。 eg: 2.sqlSession相同,查询条件不同 ...
分类:
数据库 时间:
2017-11-03 16:11:20
阅读次数:
559
1 from selenium import webdriver 2 import time 3 4 url_1 = 'http://www.baidu.com' 5 url_2 = 'http://news.baidu.com/' 6 driver = webdriver.Firefox() 7 ... ...
分类:
编程语言 时间:
2017-11-03 13:13:48
阅读次数:
191
用法1 用法2 与find方法不同的是,where方法返回的结果不是数组而是ActiveRelation,这意味着我们可以基于当前的查询结果继续设置条件进行查询。 用法3 通过to_sql方法我们能看到Rails将我们的条件转换成的SQL语句以便于调试 用法4 比如第一步先检索出position是2 ...
分类:
其他好文 时间:
2017-11-03 12:55:23
阅读次数:
138
本文参考一下资料整理 https://wenku.baidu.com/view/6b0d6906cf84b9d528ea7a66.html http://pangqicheng123.blog.163.com/blog/static/8233547620114111235243/ TI 的 DSP ...
分类:
其他好文 时间:
2017-11-03 00:12:37
阅读次数:
293
项目托管平台地址:https://gitee.com/gao.529945.net/codes/0sb1ogyqn3pze46wax7m831 1.界面设计 2.数字0-9,加减乘除,等点击事件 3.点击任意Button则变颜色 ...
分类:
其他好文 时间:
2017-11-02 23:17:10
阅读次数:
201
svn执行update操作后出现: Error : Previous operation has not finished; run 'cleanup' if it was interrupted. Error : Please execute the 'Cleanup' command. svn执 ...
分类:
其他好文 时间:
2017-11-02 20:09:31
阅读次数:
377