原创 ajax 跨域訪問
protected void doGet(HttpServletRequest request, HttpServletResponse respo
原创 datetimepicker 出現1899的bug
這個bug 出現的可能性有日期格式設置錯誤,解決辦法重新調整 第二個可能性,也就是我碰到的情況,startDate的問題,獲取當前時間,然後設置這個屬性 var now=new Date(); var strTime=now.getFu
原创 jsp table固定寬度,加滾動條
<div style="overflow-x: auto; overflow-y: auto; "> <table
原创 ubuntu18.*下編譯SRS錯誤問題的解決
sudo apt-get install lzop /usr/include/c++/7/sstream:300:7: error: ‘struct std::__cxx11::basic_stringbuf<_CharT, _Trait
原创 jsp 計算年齡
SimpleDateFormat form=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); Calendar cal=Calendar.getInstance(); Date
原创 jsp servlet的web.xml的配置中碰到的詭異問題
Server Tomcat v9.0 Server at localhost failed to start. he servlets named [x] and [x.y] are both mapped to the url-pat
原创 jsp的servlet亂碼問題
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//
原创 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT iptables: Applying
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT iptables: Applying firewall rules: ip
原创 獲取mysql中指定庫的所有表名
select table_name from information_schema.TABLES where TABLE_SCHEMA='db_name' information_schema這個是數據系統用來保存數據表的總表
原创 apache jsp的路徑問題
String savePath = getServletContext().getRealPath(File.separator+"img"
原创 js 字符串轉float
οnchange="textToFloat(this.id)" 這個是 input text的 <script> function textToFloat(x){var y=document.getElementById(x).v
原创 Xcode升級10之後項目錯誤
Ld /Users/liuyongqing/Library/Developer/Xcode/DerivedData/RenyirenshuIM-gdoqnmfczijtczbkzmlzpqkkbjeh/Build/Products/Deb
原创 iOS 生成純色圖片
-(UIImage*) imageWithColor:(UIColor*)color { CGRect rect = CGRectMake(0.0f, 0.0f, 32.0f, 32.0f); UIGraphicsBegi
原创 python + selenium
# -*- coding: gbk -*- #encoding=utf8 # -*- coding:cp936 -*- from selenium import webdriver from seleni
原创 android webview無法播放視頻
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP){ ws.setMixedContentMode(WebSettings.MIXED_CONTENT_ALWAYS_