06 2018 档案

摘要:var index = parent.layer.getFrameIndex(window.name); //获取窗口索引parent.layer.close(index); 阅读全文
posted @ 2018-06-28 11:40 前端极客 阅读(11041) 评论(0) 推荐(2) 编辑
摘要:1 安装:npm config set registry=https://registry.npm.taobao.org 3 删除:npm config set registry=https://registry.npm.taobao.org 5 查看 :npm config list 阅读全文
posted @ 2018-06-20 08:07 前端极客 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1 //获取伪元素// CSS代码 2 #myId:before { 3 content: "hello world!"; 4 display: block; 5 width: 100px; 6 height: 100px; 7 background: red; 8 } 9 // HTML代码 10 11 // JS代码 12 var myIdElement = docume... 阅读全文
posted @ 2018-06-14 22:12 前端极客 阅读(6924) 评论(0) 推荐(0) 编辑
摘要:1 最近脑子热了一下把Nodejs更新到最新版,来新的项目npm install出现了这个错误。查了一下应该时因为最新版的Nodejs与npm版本不合适的问题(因为没更新Node之前是不会的)。解决办法就是把npm的版本降到4版。 2 3 在windows下使用cmd执行语句:npm -g i npm@4 4 5 Mac系统的就按照相同的思路修改就行啦,btw,在查找的过程中还... 阅读全文
posted @ 2018-06-09 07:55 前端极客 阅读(13982) 评论(0) 推荐(1) 编辑
摘要:1 function sendAjax() { 2 $.ajax({ 3 type: "post", 4 url: "/flow/process/trace.afca?pid=" + pid + "&ratio=1.3", 5 dataType: 'json', 6 a... 阅读全文
posted @ 2018-06-08 13:53 前端极客 阅读(309) 评论(0) 推荐(0) 编辑
摘要:1 import Vue from 'vue' 2 import Vuex from 'vuex' 4 Vue.use(Vuex); 6 import getters from './getters.js' 7 import actions from './actions.js' 8 import user from './modules/user.js' 10 export def... 阅读全文
posted @ 2018-06-08 09:16 前端极客 阅读(1100) 评论(0) 推荐(0) 编辑
摘要:1 //store.js 2 /** 3 * vuex配置 4 */ 5 6 import Vue from 'vue' 7 import Vuex from 'vuex' 8 9 Vue.use(Vuex); 10 11 //定义属性(数据) 12 var state={ 13 count:6 14 } 15 16 //定义getters 17 var g... 阅读全文
posted @ 2018-06-08 09:14 前端极客 阅读(4005) 评论(0) 推荐(0) 编辑
摘要:1 function GetRequest() { 2 var url = location.search; 3 var theRequest = new Object(); 4 if (url.indexOf("?") != -1) { 5 var str = url.substr(1); 6 ... 阅读全文
posted @ 2018-06-06 13:47 前端极客 阅读(13151) 评论(0) 推荐(0) 编辑
摘要:文件夹和文件名称简介 build 构建脚本目录 config 应用程序的配置文件 index.html 入口页面 node_modules 存放 NPM 依赖模块 package-lock.json 记录 NPM 包的具体来源和版本号 package.json 应用所需的 NPM 包配置文件 REA 阅读全文
posted @ 2018-06-04 09:03 前端极客 阅读(235) 评论(0) 推荐(0) 编辑
摘要:1、main.js是我们的入口文件,主要作用是初始化vue实例,并引入所需要的插件 2、App.vue是我们的主组件,所有页面都是在App.vue下进行切换的。其实你也可以理解为所有的路由也是App.vue的子组件。所以我将router标示为App.vue的子组件。 index.html文件入口 s 阅读全文
posted @ 2018-06-03 11:08 前端极客 阅读(36425) 评论(1) 推荐(3) 编辑
摘要:1 //location对象 2 //初始url:http://www.wrox.com/WileyCDA; 3 //将URL修改为:http://www.wrox.com/WileyCDA/#section1 4 location.hash="#section1" 5 //将URL修改为:http://www.wrox.com/WileyCDA/?q=javascript 6 lo... 阅读全文
posted @ 2018-06-02 17:40 前端极客 阅读(409) 评论(0) 推荐(0) 编辑
摘要:var jsonText=JSON.strintfy(book); JSON.parse(); toJson 阅读全文
posted @ 2018-06-02 16:49 前端极客 阅读(153) 评论(0) 推荐(0) 编辑
摘要:1 $(document).on("click",".layui-table-body table.layui-table tbody tr",function(){ 2 var obj = event ? event.target : event.srcElement; 3 var tag = obj.tagName; 4 ... 阅读全文
posted @ 2018-06-02 10:31 前端极客 阅读(22102) 评论(1) 推荐(2) 编辑
摘要:1 A页面跳转时候的地址: 2 parent.layer.open({ 3 type: 2, 4 title:'新建草稿', 5 shadeClose: true, 6 shade: 0.8, 7 scrol... 阅读全文
posted @ 2018-06-01 09:15 前端极客 阅读(3754) 评论(0) 推荐(0) 编辑
摘要:1 $.post('/manage.aa', function (response) { 2 agentList = response.data; 3 }, 'json'); 4 var categoryId; 5 $.get("/flow/flowDfne/queryFloRR.DD", {}, function (data) { 6 ... 阅读全文
posted @ 2018-06-01 08:58 前端极客 阅读(352) 评论(0) 推荐(0) 编辑
摘要:$(document).on('mouseenter', '#paramsFather .layui-form-selected dl dd', function () { var data = $(this).attr('lay-value').split('||')[1]; data = data != 'null' ? data : '无'; layer.tips('描述... 阅读全文
posted @ 2018-06-01 08:48 前端极客 阅读(1022) 评论(0) 推荐(0) 编辑
摘要:1 var delArry = [];//1.声明一个空数组用来存放数据; 2 for (var prop in nodes) {2.遍历存放数据的数组对象nodes; 3 if (nodes.hasOwnProperty(prop)) {3.如果对象数组有属性prop; 4 if (prop != ... 阅读全文
posted @ 2018-06-01 08:43 前端极客 阅读(729) 评论(0) 推荐(0) 编辑
摘要:1 table.on('tool(hostTable)', function (obj) { 2 var data = obj.data;//须写 3 if (obj.event === 'del') { 4 var parents = $(this).parents('.elementClass'); 5 operateId = $(p... 阅读全文
posted @ 2018-06-01 08:32 前端极客 阅读(3070) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示