摘要:
// localStorage util var db ={ set : function(key, obj){ localStorage.setItem(key, JSON.stringify(obj)); }, get : function(key){ return JSON.parse(localStorage.getItem(key)); }, each : fun... 阅读全文
摘要:
* Rectangle继承Shape * 给定一个构造函数 constructor,请完成 alterObjects 方法,将 constructor 的所有实例的 greeting 属性指向给定的 greeting 变量。 input: var C = function(name) {this.n 阅读全文
摘要:
* jQuery ajax FormData 上传文件 template 关键的3个选项: cache: false, processData: false, contentType: false, * demo: alert.js config.js 阅读全文
摘要:
* Function.prototype.bind // test * Array.prototype.map 阅读全文
摘要:
// https://open.alipay.com/developmentAccess/developmentAccess.htm var $ = window.jQuery; (function() { if (!NodeList.prototype.forEach) { NodeList.prototype.forEach = functio... 阅读全文
摘要:
build.gradle 阅读全文
摘要:
在安装好Maven之后,默认的~/.m2目录下是没有maven仓库配置文件settings.xml的,默认使用的是官方的仓库,访问速度会非常慢,我们需要配置下国内的仓库。 创建~/.m2/settings.xml文件,文件内容如下: 其中使用的是阿里云的mirror,国内的下载速度非常快。 阅读全文
摘要:
页面公共部分以javascript document.write()方式加载 生成的js放到需要的位置 footer.js 放到body底部引入 ... <script src="js/footer.js"></script> </body> php.exe所在文件夹添加到path环境变量, 在命令 阅读全文
摘要:
test: Thinkphp Model 阅读全文
摘要:
字符串反转 * 如果第二个参数 bUnicode255For1 true,则所有字符长度为 1否则如果字符 Unicode 编码 > 255 则长度为 2 input: 'hello world, 牛客', false output: 17 阅读全文