随笔分类 - Web部分
1
前端、后端。http、js、CSS,netty等
摘要:多张图片上传的顺序,受到用户使用习惯、插件上传和插件插入页面顺序的影响。 估计是考虑到上传性能,官方没有提供UMeditor控制展示顺序的配置。在上传过程中,用户点击拖动的第一张图片,将作为文件数组中的第一张图片。上传过程中是按照文件的倒序进行的。由于网络和文件大小的原因,会造成各个文件上传所消耗的
阅读全文
摘要:1. 下载php-5.3.282. 编译/安装 ./configure --prefix=/usr/local/php --enable-fpm --enable-maintainer-zts --with-curl 结果数据 lang = $lang; $this->pa...
阅读全文
摘要:Ubuntu 安装Sublime Text3的Emmet插件
阅读全文
摘要:使用定时执行来做模拟,数据不是动态,但是BMap的API使用方法是可以用的。
阅读全文
摘要:bundle依赖ruby,因此需要下载并安装一下内容: 1. rubyinstaller 这个是windows专用的ruby安装程序,下载地址是http://rubyinstaller.org/ 2. Development Kit 由于某些依赖DevKit,因此安装 下载...
阅读全文
摘要:1. JSON解析undefinedJSON.parse(undefined)VM4456:2 Uncaught SyntaxError: Unexpected token u2. 事件传值 on('change', {index: i}, function(event) { ...
阅读全文
摘要:1. 省略显示 max-width: 200px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; 固定宽度,nowrap,ellipsis是关键条件
阅读全文
摘要:contentType: "application/json", data: JSON.stringify( { org: org, worksite_info: info ...
阅读全文
摘要:Tools.getMonthDate = function(type) { var res = false, today = new Date(), year = today.getFullYear(), month = today.getMonth(...
阅读全文
摘要:第一部:《You don't know JS: this & Object prototype》第三章 Object对象常量var myObject = {};Object.defineProperty( myObject, "FAVORITE_NUMBER", { value: 42, writa...
阅读全文
摘要:CSS Display - Block and Inline ElementsA block element is an element that takes up the full width available, and has a line break before and after it....
阅读全文
摘要:问题: 页面中有菜单页和内容页,都在同一个页面显示。问题是刷新之后,或者从某个页面跳转到另外一个内容页面的时候,菜单状态失效或者页面会到首次登陆状态。要求: 1. 刷新或者重新加载时,保持页面(菜单页和内容页)状态; 2. 页面内部功能回退:能正常回退; 3. 退出时,清除所有状态。方案: ...
阅读全文
摘要:1. bootstrap tooltip 修改内容 $('#test-tooltip').tooltip();$('#test-tooltip').prop('title', '测试2次').tooltip('fixTitle');
阅读全文
摘要:nginxserver { listen 80; server_name localhost; root /apps/web/; index index.html; location / { } location /server { ...
阅读全文
摘要:var CookieUtil = { get: function(name) { var cookieName = encodeURIComponent(name) + "=", cookieStart = document.cookie.indexOf(c...
阅读全文
摘要:1. dom修改input的value,不会触发change事件 可选方式:在修改完值之后,主动调用onchange事件。 参考:http://www.qttc.net/201306342.html2. 重复利用echarts绘制区域 function updateChart(data) { if (!data) return; require( [ 'echarts', 'echarts/chart/line', 'echarts/chart/bar' ], ...
阅读全文
摘要:环境描述node=v0.10.25npm=1.3.24grunt-cli=0.1.13安装nodejs:http://nodejs.org/安装grunt和grunt-client: npm install grunt npm install -g grunt-cli说明grunt客户端与gru...
阅读全文
摘要:配置Spring1. 添加idea插件都选上了。也许有用!2. 添加Spring库 下载spring,添加java库,指向spring库的目录:配置tomcat Server1. 安装tomcat插件2. 指定tomcat路径 下载tomcat,并在idea中指定解压后的路径或者是安装目录:测试1. 创建项目2. 运行需要注意的是:系统不能讲tomcat启动起来,否则idea就无法启动它了。
阅读全文
1

浙公网安备 33010602011771号