原创 java +ItextPdf +PdfPCell導出pdf
效果圖 public void downloadsPDF(HttpServletRequest request, HttpServletResponse response) throws Exception { //
原创 集合和數組互轉問題
解釋來源:阿里巴巴開發手冊 1、集合轉數組 List<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(2);
原创 Echarts 餅狀圖 基礎圖形
1.效果圖 2.代碼 <div id="main" style="width:800px;height:800px"></div> var myChart = echarts.init(document.getElementById
原创 項目正常運行,突然圖片加載不出來報錯Failed to load resource: net::ERR_CONTENT_LENGTH_MISMATCH
1、報錯原因 2、看出磁盤 df -h 上面圖片中,自己理解的,可能有錯誤,比如說 共50G 使用47G 應該是 剩餘3G 佔用 94%,這是個問題? 3、知道問題所在就好說了 dh -sh * 開始執行一直報錯 換成 dh -s
原创 java+jsoup 爬取智聯招聘 簡化版
1、獲取列表 需要分析正確的接口url 請求參數: start=180 &pageSize=90 &cityId=763 &salary=0,0 &workExperience=-1 &education=-1 &companyType=
原创 form表單action按鍵盤enter提交問題
前言: 當給form表單提交綁定 鍵盤事件時,會請求兩個鏈接 ,一個是action上設置的,另一個是綁定事件中設置的請求鏈接。 解決方法: onsubmit="searchClick();return false;" <form acti
原创 使用java+selenium+jsoup爬搜狗微信文章
爬取最近的文章,有問題可以交流,新人爬手!! static WebDriver driver = null; public void test() { if (driver == null) {
原创 js中input框限制
1、驗證是否是正確的鏈接 var url=$("#pUrl").val() var reg=/^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?$/; var o
原创 bat腳本上傳壓縮包到liunx
@echo off :: 註釋 ::判斷 文件是否存在 存在刪除 if exist "D:\java\bat\amus_product_meta_tmp.zip" ( del D:\java\bat\amus_product_meta_t
原创 mysql安裝----zip解壓文件安裝方法
1、第一步下載mysql,官網https://dev.mysql.com/downloads/mysql/ 根據自己電腦系統位數選擇不同的壓縮包,點擊download進入下一頁 點擊No thanks, just start my do
原创 不能進入KindEditor.ready(function(K) {})的解決方法
初始版: 無效,不能進入kindEditor.ready方法。 之後再網上搜索這個問題原因:可能是沒初始化 改進版: 效果圖:
原创 使用kindeditor插件報KindEditor is not defined 問題
遇到過這個異常,問題原因js引入順序不對 這種引入順序會報 :KindEditor is not defined <script charset="utf-8" src="../kindeditor/lang/zh-CN.js"></s