声明:这里纯属学习,瞎搞,真正的实现原理并非如此 demo.html html/tpl01.html html/tpl02.html 下期预告:瞎搞react:ReactDom.render() ...
分类:
Web程序 时间:
2016-12-13 08:14:36
阅读次数:
497
var nod = document.createElement(“style”), str = “body{background:#000;color:#fff} a{color:#fff;text-decoration:none;} a:hover{color:red;text-decorati... ...
分类:
Web程序 时间:
2016-12-13 08:12:17
阅读次数:
198
Q: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique lon... ...
分类:
其他好文 时间:
2016-12-13 08:08:14
阅读次数:
143
A new built-in function, enumerate() , will make certain loops a bit clearer. enumerate(thing) , where thing is either an iterator or a sequence, retu ...
分类:
编程语言 时间:
2016-12-13 07:32:48
阅读次数:
166
一 代码推送到远程git仓库 1.在git中建立一个下项目(假设项目名称为-》Mygit) 2.在xocde上新建一个测试项目(假设项目名称为GitTest) 3.打开电脑终端: 1)首先利用终端命令进入xcode新建的测试项目(GitTest)的目录中 2) echo "# Mygit" >>RE ...
分类:
其他好文 时间:
2016-12-12 23:54:48
阅读次数:
259
MFiLogo 前面我写了一篇文章《iOS App连接外设的几种方式》,其中EAP和NCM是都需要做MFi认证。对于苹果的MFI认证,对iOS开发的同学来说其实是一个比较陌生并且繁琐的topic,因为网上资料确实很少,百度Google几乎都查不到啥资料,而且MFi认证门槛比较高,流程比较复杂,周期很 ...
分类:
其他好文 时间:
2016-12-12 23:22:13
阅读次数:
488
From: AOJ 0121 思路:与前几题的bfs不同,这次的bfs没有明确的移动对象,看似任意一个数都可以当成对象移动。这时我们只需要抓住一个格子就行,比如我们把0作为移动对象,那么0在地图中漫游所有的格子得到的肯定就是问题的解空间。由于题目的输入是多个case,如果对每个case都运行一遍bf ...
分类:
其他好文 时间:
2016-12-12 22:45:54
阅读次数:
199
前端时间总是用配置文件 内容太多 下面认识一下注解 注解是什么? 1代码里面的特殊标记,使用注解可以完成功能 2注解写法@XXX 3使用注解可以少些很多配置文件 Spring注解开发准备 注解创建准备 1导入Spring的jar包 2创建类 public class User{ public voi ...
分类:
编程语言 时间:
2016-12-12 22:29:29
阅读次数:
225
注释: (1)给下拉框赋值:$("#Select1").val(“二”);这时已经选中了 value是two的选项 ,通过$("#Select1")[0].selectedIndex或者$("#Select1").get(0).selectedIndex可以得到此时的索引是1,下拉框的索引是从0开始 ...
分类:
Web程序 时间:
2016-12-12 19:54:51
阅读次数:
174
ps -A | grep -i mysql kill 列出来的进程 service mysql start 我的问题就解决了 Fedora8启动mysql 报错:ERROR 2002 (HY000): Can’t connect to local MySQL server through socke ...
分类:
数据库 时间:
2016-12-12 19:19:41
阅读次数:
199