![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php+html+js
CodySnow
这个作者很懒,什么都没留下…
展开
-
phalcon html 文件下载
function downloadFile($response, $file_name, $root) { $response->setHeader('Content-type', 'text/html;charset=utf-8'); //用以解决中文不能显示出来的问题 $file_name=iconv("utf-8","gb2312",$file_name); $原创 2016-10-15 12:00:26 · 1052 阅读 · 0 评论 -
js 自定义对象属性
Object.defineProperty(Array.prototype, '$set', { value:function(index, val){ console.log(typeof this); if (index>= this.length) { this.length = Number(index)原创 2016-11-21 18:14:27 · 654 阅读 · 0 评论 -
weex 中使用vue语法使用,自定义navbar组件和navpage组件
1、自定义组件,需要父组件传值得属性放在props里面 :style 可以写多个属性用逗号(,)分割,或者直接:background-color=”backgroundColor”<template> <div class="container" :style="{height:height+'px', backgroundColor:backgroundColor}" :data-ro原创 2017-03-13 20:06:15 · 5228 阅读 · 0 评论 -
javascript中字符串string.replace 第二个参数是函数简单介绍
例子:const camelizeRE = /-(\w)/g function camelize(str) { return str.replace(camelizeRE, toUpper) };function toUpper (a, c,d) { console.log(arguments.length+";"+JSON.stringify(arguments));原创 2017-05-05 11:50:09 · 707 阅读 · 0 评论