原创 vue在main.js中eventHub

有時候在vue 中我們需要在不同的組件中傳值數據,大部分情況下我們可以store,或者可以使用inject 注入,又或者使用一個單獨得js,類似bus.js 。但是我們還是可以使用另外的一種bus。不過這個使用更加方便,而且不用

原创 數組排序sort參數的理解

對於js數組排序sort參數得一些理解 開發過程中一直有使用到排序sort,但是一直都是直接複製的,雖然也有查找過相關資料,但是一直都還是一頭霧水,理解不了。最近看了高級javascript,看到裏面的定義,才恍然大悟 比較函

原创 iview按了entry鍵,有了其他的操作

這裏有個可能,查看下自己的form表單是不是隻有一個標籤formItem, 如果只有一個標籤formItem,可以在formItem下面的輸入框或者其他的標籤上加上entry按鍵的事件,一個空事件 <DatePicker

原创 asp.net 獲取網站根目錄總結

獲取網站根目錄的方法有幾種如: Server.MapPath(Request.ServerVariables["PATH_INFO"])   Server.MapPath("~/")//獲取根文件夾   Server.MapPath(""

原创 .Asp.Net中幾種相似的標記符號: 解釋及用法

.Asp.Net中幾種相似的標記符號: < %=...%>< %#... %>< % %>< %@ %>解釋及用法 答: < %#... %>: 是在綁定控件DataBind()方法執行時被執行,用於數據綁定 如: < %# Contai

原创 asp.net文件的,創建,刪除,複製,粘貼

using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Se

原创 FileUpload 控件得到圖片路徑後即時顯示圖片

對於這個問題fileupload沒有事件能夠即時顯示圖片的!因此,我們要用JavaScript中的onchang方法來顯示圖片! //方法 function change() {             var fileName = do

原创 iview tabs 可以設置指定的刪除

頁面效果: 主要使用了函數式組件,這裏需要優化的是刪除後當前選中的 render.js export default { name: 'RenderCell', functional: true, props:

原创 iview表格實現單選

{ title: "選擇", type: "_checked", align: 'center', render: (h, {row, index}) => { let _that = this; return

原创 iview表格下拉操作

{ title: "操作", align: "center", render: (h, {row}) => { event.preventDefault(); event.stopPropagation();

原创 json數據分組

let map = {}, nList = [] arr.forEach((item) => { if (!map[item.date]) { nList.push({ date: item.date, data: [

原创 iview表格頭部使用下拉框

cols: [ { width: 250, align: 'center', renderHeader: (createElement, {col}) => { return createElement('Select'

原创 dom轉換圖片並下載html2canvas

exportReport() { let a = document.createElement('a'); html2canvas(this.$refs.png這個改成自己的).then(canvas=> {

原创 基於asp.net的Ajax 級聯下拉菜單

設計頁面:              <asp:DropDownList ID="DropDownList1" runat="server"></asp:DropDownList>             <asp:DropDownLis

原创 less變量的另個作用 ,類名也可以用變量

less我們可以使用變量 @color:red; 引用時候.title:{color:@colore;}這樣就可以,我們大多數也是這樣使用變量的,但是今天發現變量還可以使用在類名上 下面看例子 定義 @color:red;