摘要: (一)连接数据库&查询数据库,(例子:用户登录窗) 阅读全文
posted @ 2018-04-12 12:02 履霜.1989 阅读(4994) 评论(4) 推荐(0)
摘要: (一)VS2017 C# winfrom项目安装引用sqlite. 1.新建C# winfrom项目。 2.解决方法管理器中,引用,右键菜单,管理Nuget程序包,浏览,搜索System.Date.SQLite安装。 3.在Form.cs中 using System.Data.SQLite;即可使用 阅读全文
posted @ 2018-04-12 11:55 履霜.1989 阅读(4166) 评论(0) 推荐(0)
摘要: 和变量不同,关键字this没有作用域的限制,嵌套函数不会从调用它的函数中继承this.如果嵌套函数作为方法调用,其this值不是全局对象(非严格模式下),就是undefined(严格模式下).很多人误以为调用嵌套函数时this会指向调用外层函数的上下文.如果你想访问这个外部函数的this值,需要将t 阅读全文
posted @ 2018-03-19 11:31 履霜.1989 阅读(208) 评论(0) 推荐(0)
摘要: //在元素后插入元素 function insertAfter(newElement,targetElement){ var parent=targetElement.parentNode; if(parent.lastChild==targetElement){ parent.appendChild(newElement); }else{ ... 阅读全文
posted @ 2018-02-24 10:58 履霜.1989 阅读(1410) 评论(0) 推荐(0)
摘要: //网页载入后调用 function addLoadEvent(func){ var oldonload=window.onload; if(typeof window.onload!='function'){ window.onload=func; }else{ window.onload=function(){ ... 阅读全文
posted @ 2018-02-24 10:57 履霜.1989 阅读(282) 评论(0) 推荐(0)
摘要: //创建数据库(PHP中MySQL语句结尾不用加;,因为PHP中MySQL语气每次只能执行一句) create database testdatabase; //选择数据库 use testdatabase; //创建数据表 create table test_table(first_name varchar(30),last_name varchar(30));//显示数据表机构descr... 阅读全文
posted @ 2018-01-30 22:02 履霜.1989 阅读(226) 评论(0) 推荐(0)
摘要: "> //使用自引用表单,$_SERVER['PHP_SELF']变量显示PHP文件自身文件名 "; } //查询email_list数据表 $query="select * from email_list"; $result=mysqli_query($dbc,$query) or die('error select database.'); //生成复选框 while($row=mysqli... 阅读全文
posted @ 2018-01-29 23:23 履霜.1989 阅读(1544) 评论(0) 推荐(0)
摘要: $email='hi@qq.com'; $dbc=mysqli_connect('localhost','root','root','test_store') or die('Error conneting to MySQL server.'); $query="insert into email_list (email) values('$email')"; $result=mysqli_q... 阅读全文
posted @ 2018-01-29 22:59 履霜.1989 阅读(235) 评论(0) 推荐(0)
摘要: 单引号内的内容被认为是字符串。 双引号内的内容认为是可处理的字符串,会在其中寻找变量。 阅读全文
posted @ 2018-01-29 22:52 履霜.1989 阅读(132) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <title>table2xls</title> <meta charset="utf-8"> <style type="text/css"> body, table { font-size: 12px; } table { table-l 阅读全文
posted @ 2018-01-15 14:51 履霜.1989 阅读(2257) 评论(0) 推荐(1)