Martube Home for writing

Js提交表单时同步上传多文件

前言 文件上传时经常用到的功能之一,最近正好做到了这个功能,在提交表单的同时将文件一起上传,这里做一个记录。 环境 js + ajax + php + mysql 实现思路及代码 这里就说几个关键的地方 CSS 点击 + 增加文件上传按钮 function addmorefile(){ var morefile = $('.addfile'); va... Read more

Js按照数组内元素某一属性进行大小排序

前言 排序是经常会使用到的,但多维数组的排序在js种并没有原生的方法,这里记录一下。 注:sort是原生的 案例代码 var data = [ { name:"jiang", age:22 }, { name:"pander", age:21 }, { name:"k... Read more

转载 - 为博客添加-Gitalk-评论插件

转载自:柏荧(BY)的博客 前言 由于 Disqus 对于国内网路的支持十分糟糕,很多人反映 Disqus 评论插件一直加载不出来。而我一直是处于翻墙状态的~(话说你们做程序员的都不翻墙用Google的吗😅,哈哈,吐嘈下) 针对这个问题,我添加了Gitalk 评论插件。在此,非常感谢 @FeDemo 的推荐 。 正文 Gitalk 评论插件 首先来看看 Gitalk 的界面和功能... Read more

Welcome to Lagrange!

Lagrange is a minimalist Jekyll theme. The purpose of this theme is to provide a simple, clean, content-focused blogging platform for your personal site or blog. Below you can find everything you n... Read more

Getting Started

Lagrange Lagrange is a minimalist Jekyll theme for running a personal blog or site for free through Github Pages, or on your own server. Everything that you will ever need to know about this Jekyl... Read more