上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
恢复内容开始 <div class="boxTitle loadPic"><button id="loadPic">上传图片</button></div> 点击id为loadPic的元素(上传图片按钮),触发loadPic函数: function loadPic(e){ if(isWechatBro Read More
posted @ 2017-11-02 14:46 xzzzys Views(388) Comments(0) Diggs(0) Edit
最近要在微信上做个问卷调查,有个上传图片功能,折腾找了半天资料,都不好弄,最终打算调用微信提供的上传图片接口,实现上传图片功能!此功能最大的好处是可以在微信服务器上暂存图片,减少本地服务器图片的缓存,等到最后的提交,在从微信提供的接口中下载图片到本地服务器中保存! 微信JS-SDK说明文档 概述 微 Read More
posted @ 2017-11-02 09:09 xzzzys Views(1678) Comments(0) Diggs(0) Edit
<div class="abc"><a href="1.html"><img src="1.jpg"/>111</a><a href="2.html"><img src="2.jpg"/>222</a><a href="3.html"><img src="3.jpg"/>333</a></div>我 Read More
posted @ 2017-11-01 18:11 xzzzys Views(1704) Comments(0) Diggs(0) Edit
方法一,利用ActiveX控件实现: 代码 1 <script type="text/javascript"> 2 function getFileSize(filePath) 3 { 4 var fso = new ActiveXObject("Scripting.FileSystemObject Read More
posted @ 2017-10-31 18:10 xzzzys Views(3870) Comments(0) Diggs(0) Edit
本文保存为.html文件用浏览器打开即可测试功能 <form id="form1" name="form1" method="post" action="" enctype="multipart/form-data"> <p><input type="hidden" name="MAX_FILE_S Read More
posted @ 2017-10-31 17:50 xzzzys Views(4033) Comments(0) Diggs(0) Edit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 <script type="text/javascript" charset="utf-8"> //m Read More
posted @ 2017-10-31 16:49 xzzzys Views(1197) Comments(0) Diggs(0) Edit
//有种形式的传递:从父到子,从子到父,平行级别的传递//首先第一种:从父到子,用props属性绑定 //父级数据: new vue({ "el":"#app", data:{ nickname:"小七" } }) //子组件: vue.component("myComp",{ "props":{" Read More
posted @ 2017-10-31 14:20 xzzzys Views(1519) Comments(0) Diggs(0) Edit
组件就是可重用的代码,可以扩展HTML元素 按作用域范围可以分为1,全局组件 2,局部组件 1,全局组件: 1 vue.component("定义组件名myComponent",{ template:"这是全局组件" }) 用时:<my-component></my-component> 写在new Read More
posted @ 2017-10-31 13:33 xzzzys Views(183) Comments(0) Diggs(0) Edit
vue 计算属性: computed:{} 写在new vue()的属性,只要参与运算,数据不发生变化时,次计算只会执行一次,结果缓存,之后的计算会直接从缓存里去结果。如果其中的值发生变化(不管几个),会重新计算,在重新缓存 在computed和methods的方法里直接调用data里的数据时用 t Read More
posted @ 2017-10-31 11:35 xzzzys Views(690) Comments(0) Diggs(0) Edit
1.0版本: limitBy filteBy orderBy lowerBy upperBy json currency capitalize pluralize debounce 2.0版本: 要自己实现过滤,{{msg | uppercase}} {{msg | limitTo(5) }}如下: Read More
posted @ 2017-10-31 11:13 xzzzys Views(241) Comments(0) Diggs(0) Edit
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页