原创 Windows下配置Hadoop環境

1.準備文件: 首先到官方下載官網的hadoop2.7.7,鏈接如下 https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/ 找網盤的hadooponwindows-maste

原创 模仿百度搜索框,進行聯想搜索

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>input自動補全</title> <script type="text/jav

原创 詳解跨域解決方案

https://tudoublog.com/skill/9038293

原创 微信小程序wx.request中post請求時data中參數不能傳到後臺

當使用POST方式請求時,後端無法獲取data中的數據, 將: 'content-type': 'application/json' 修改爲: 'content-type': 'application/x-www-form-urle

原创 微信小程序modal自定義文本框

<!--監聽button點擊事件--> <button bindtap="Button" type="primary">彈出modal</button> <!--彈出框--> <modal hidden="{{hidde

原创 navicat開啓mysql數據庫root用戶的遠程訪問

打開navicat,登錄mysql ,點擊用戶,打開root用戶,把主機名修改成%,保存即可。

原创 微信小程序使用template模板

首先簡單的看一下文件結構:  第一步:新建一個template文件夾,裏面新建一個template.wxml和template.wxss; template.wxml: <template name="postItem"> <vi

原创 微信小程序 保存持久化cookie

1.本地保存cookie wx.setStorageSync('Set-Cookie', "token的值") 2.網絡通訊往後臺傳值 header: { 'content-type': 'application/j

原创 X-Frame-Options防止自己的網頁放被在別人iframe中

在你不想被引用的頁面上寫入如下標籤和內容: <meta http-equiv="X-Frame-Options" content="SAMEORIGIN">  其中content參數有多個: (1)DENY:不能被嵌入到任何iframe

原创 java調用快遞物流接口api

接口地址:阿里雲全球物流快遞查詢(單號識別)  登錄阿里雲進行購買,有免費試用次數,可以免費查詢100次。 購買成功之後去阿里雲 控制檯→雲市場→已購買服務 就能看自己的接口所需要的key。  然後java調用代碼: public s

原创 小程序 列表橫向滑動

<scroll-view scroll-x class="scroll-header" enable-flex="true"> <view class="table"> <view class="tr bg-w">

原创 微信小程序系列-wx.request 請求中文亂碼問題

method: "post", header: { 'content-type': 'application/x-www-form-urlencoded;charset=utf-8'

原创 微信小程序開始時間,結束時間

  wxml代碼: <view class="section" style="background:#dfe0e2;margin:20rpx;padding:20rpx"> <picker bindchange="bindPick

原创 微信小程序點擊按鈕實現手機振動功能

<button bindtap="vibrateLongTap">振動(400ms)</button> <button bindtap="vibrateShortTap">振動(15ms)</button> vibrateLong

原创 Git的原理及配置

git add:將本地文件 增加到暫存區 git commit:將暫存區的內容 提交到 本地倉庫(本地分支,默認master分支) git push:將本地倉庫的內容 推送到  遠程倉庫(遠程分支) git pull:將遠程倉庫(遠程分支