原创 SpringBoot根據環境加載不同的properties配置文件
一、背景需求 在項目中遇到多個環境配置的問題,yml可以配置springboot的配置,自己想自定義properties文件來配置自定義的內容,避免頻繁改環境引起配置文件頻繁修改,可以實現不同的環境加載不同的properties自
原创 Layui table 設置radio選中狀態
layui.use(['table'], function () { var table = layui.table; var bindDatas = table.cache["bind"];
原创 js 鼠標懸浮div顯示tip,離開tip消失,不用單獨寫鼠標離開事件
$("#delPoint").hover(function (e) { // 顯示tip var editMenuTooltip = document.getElementById('edit-menu-toolt
原创 JS獲取對象數組的某個屬性集合
var data = [ { a: 1, b: 2, c: 3 }, { a: 4, b: 5, c: 6
原创 vue echart的使用
獲取ECharts 你可以通過以下幾種方式獲取 ECharts。 從 Apache ECharts (incubating) 官網下載界面 獲取官方源碼包後構建。 在 ECharts 的 GitHub 獲取。 通過 npm 獲取
原创 ajax調用C# webapi接口
js ajax請求代碼: $.ajax({ // url: 'http://192.168.83.51:8025/handler/AutoDifferenceService.ashx', url:
原创 OpenLayers ol-ext:Transform 對象,旋轉、拉伸、放大
OpenLayers引用ol-ext:Transform能夠對Feature圖形進行放大、縮小、移動、旋轉、拉伸等操作,非常好用。 代碼: transformFeature() { var _this = t
原创 OpenLayers 畫圓畫橢圓
var draw; // global so we can remove it later function addInteraction() { var value = typeSelect.value; if (val
原创 OpenLayers Draw繪製時刪除最後一個點
this.draw.removeLastPoint() Remove last point of the feature currently being drawn. 操作方法: 可以通過鍵盤快捷鍵操作,比如說ESC,刪除當前正
原创 OpenLayers禁用鼠標雙擊放大事件
方案1: var map=new ol.Map({ layers:[new ol.layer.Tile({ source:new ol.source.OSM() })], target:"map
原创 OpenLayers Draw繪製時操作結束繪製
this.draw.finishDrawing() Stop drawing and add the sketch feature to the target layer. The module:ol/interaction/D
原创 import xxx from和import {xxx} from的區別
import xxx from vue import FunName from '../xxx' js export defualt function FunName() { return fetch({ url
原创 vue props規範
<script> export default { props: { /* ✓ GOOD */ // basic type check (`null` means accept any type) pr
原创 CSS水平居中
行內或類行內元素(比如文本和鏈接) 在塊級父容器中讓行內元素居中,只需使用 text-align: center; text-align:center /*水平居中*/ 這種方法可以讓 inline/inline-blo
原创 取消掉遠程桌面mstsc頂部(側面)連接欄
在進行mstsc遠程桌面連接電腦或者虛擬機的時候,總是會出現一個連接欄。雖然點左邊的圖釘可以自動隱藏,但是每次鼠標滑到上面的時候,還是會冒出來,這個就有點鬧心了。 查了下相關資料,解決了,特寫下相關教程; 關閉步驟:在進行遠程連接