Problem Description
You are the CEO of Nasty Hacks Inc., a company that creates small pieces of malicious software which teenagers may use
to fool their friends. The company has just finished their f...
分类:
其他好文 时间:
2016-05-07 09:20:07
阅读次数:
243
严格模式就是在代码片段的顶部加上一个字符串常量的语句"use
strict";(也可以用单引号),它可以是全局的,也可以是局部的(function和eval两种局部作用域)。但是它必须是代码的第一个语句(未必要是第一行)。在它之前如果有任何语句(包括空语句),严格模式的声明就会失效。
"use
strict";//全局严格模式function
func(){ "use strict"...
分类:
编程语言 时间:
2016-05-07 08:41:14
阅读次数:
169
概要安卓APP要实现很多功能(比如登录注册、发表评论等)时都必须要使用到网络数据交互。所以在学习了这部分内容后,就将其以最常见的登录过程为例整理出来,也方便跟我一样的新手能迅速学习上手。 预期效果图如下,输入手机号和密码,点击Login按钮,上传数据到服务器端进行验证,再对结果进行反馈。
博客分一二两篇,第一篇是服务器端,第二篇是Android客户端
而服务器端分为User model、Use...
分类:
移动开发 时间:
2016-05-07 08:15:29
阅读次数:
215
在windows的dos窗口用FTP命令去连时,可以登录,但使用ls等命令时,出现:
500 Illegal PORT command.
425 Use PORT or PASV first.
根据提示是被动模式的问题。
FTP主/被动模式的原理
-----------------------------------------------------------------------...
分类:
其他好文 时间:
2016-05-07 08:10:45
阅读次数:
257
mysql>use dbtest;
mysql>set names utf8;
mysql>source D:/mysql/all.sql;
通过source命令导入多个文件,可以新建一个all.sql文件,里面存放下面的命令
例如:
source d:/a1.sql;
source d:/a2.sql;
当你运行
mysql>source D:/mysql/all.sql;
这...
分类:
数据库 时间:
2016-05-07 07:39:39
阅读次数:
247
1、错误描述今天,想实现Activity不显示标题栏的效果,在项目的AndroidManifest.xml文件,对相应的Activity添加属性 android:theme="@android:style/Theme.NoTitleBar"具体代码如下:<activity android:name=".module.view.activity.KuwoMusicPlayActivity"...
分类:
移动开发 时间:
2016-05-07 07:04:15
阅读次数:
281
是不是对最新版本的php 适配ecshop很苦恼.最近我就遇到了这个事情,最终我花了一个小时的时间把这个问题解决了.特放出来,方便大家查阅.Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_call ...
分类:
Web程序 时间:
2016-05-07 06:40:13
阅读次数:
692
Convert from Binary, Octal or Hex to Decimal using Integer.parseInt(String input, int radix) Use Integer.parseInt(String input, int radix) to convert ...
分类:
编程语言 时间:
2016-05-07 00:50:51
阅读次数:
221
随着iPhone设备出现了不同的尺寸,iOS6.0以后storyboard和xib文件新增了一个Use Auto Layout选项,用来实现自动布局。当你勾选上这个选项,以前传统的布局方式将不能正常工作。一旦使用了自动布局,就要忘记 Frame 的概念! 要判断UIView是否可以使用自动布局,可以 ...
分类:
其他好文 时间:
2016-05-06 19:09:20
阅读次数:
182
一天一道LeetCode系列(一)题目
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be use...
分类:
其他好文 时间:
2016-05-06 15:35:39
阅读次数:
146