Time of Update: 2018-12-07
在jquery中遍曆標籤有parents()和closest()兩個尋找父元素的標籤區別如下:closest()是從當前標籤開始尋找如下代碼: var h = $('li.class1').closest('div').css('background-color', 'red'); <div>fjhdfjhdfgh <ul> <li class="class1">sdfgsdfg</li>
Time of Update: 2018-12-07
jQuery cookie是個很好的cookie外掛程式,大概的使用方法如下example $.cookie(’name’, ‘value’);設定cookie的值,把name變數的值設為valueexample $.cookie(’name’, ‘value’, {expires: 7, path: ‘/’, domain: ‘jquery.com’, secure: true});建立一個cookie 包括有效期間 路徑 網域名稱等example $.cookie(’name’,
Time of Update: 2018-12-07
今天一不小心在sql中寫出以下指令碼select defaultPositionId from TableName where UserId=1100528 and defaultPositionId =null 執行之後大驚怎麼沒有結果,使用select * from tableName 該列確實為null怎麼查補出來難道自己人品問題於是自己又寫了以下判斷if(null=null)BEgin print 'fff'end elsebegin print
Time of Update: 2018-12-07
“ipconfig.exe /all”在區域網路中只能擷取內部IP, 無法擷取原生外部IP, Dns.Resolve()也一樣。經研究, 在區域網路中, 僅憑原生力量是無法獲得原生外部IP的, 必須登入到外網某個伺服器, 那個伺服器就知道你的IP,
Time of Update: 2018-12-07
1using System; 2using System.Windows.Forms; 3 4public class Test : Form 5{ 6 Test() 7 { 8 Text = "不讓拖動的標題列, 雙擊標題列無反應"; 9 FormBorderStyle = FormBorderStyle.FixedDialog;10 MaximizeBox = false;11 MinimizeBox = false;12
Time of Update: 2018-12-07
表單開發的主題內容1. 表單內容設定2. CRUD與代碼產生3. 進階選項4. 設計規範 使用EPN架構製作員工主檔表單,如下 屬性設定增加表單,EmployeeMaster設定繼承的類為EntryForm[FunctionCode("SAISEM")]public partial class EmployeeMaster : EntryForm{ public EmployeeMaster() { InitializeComponent();
Time of Update: 2018-12-07
自己偶然的一個想法,堅持做出了這個軟體。如果你對技術細節及其應用感興趣,這個主題不會讓你失望。一個商務應用程式所需要的特性,它都具備。下面介紹WinForms的資料繫結技術,有了這一項技術,寫出的代碼簡潔,優美。請看Data Loader的Settings表單,它的介面效果如所示 這個表單主要儲存Data Loader的設定資訊。Downloaded Path是儲存下載之後的文檔的路徑,在下載部落格文檔的過程中,它會去這裡查看正在下載的文檔是否在這裡存在,如果是則跳過下載;Connection
Time of Update: 2018-12-07
http://msdn2.microsoft.com/zh-cn/library/system.midpointrounding.aspxMSDN > MSDN Library > .NET Development > .NET Framework 3.5 > .NET Framework >.NET Framework 類庫 > System 命名空間 > MidpointRounding 枚舉.NET Framework
Time of Update: 2018-12-07
與.Net大師Jeffrey Richter面對面交流——TUP對話大師系列活動回顧(多圖配文字)上周末很有幸參加了CSDN舉行的TUP活動,不但獲得了帶有Jeffrey簽名的圖書一本,而且還得到了和Jeffrey面對面交流的機會。會上也見到了很多牛人,部落格園上的金旭亮老師,圖靈叢書的主編劉江老師以及微軟的測試總管方敏先生,激動之餘,做一些回顧。首先是圖靈叢書的主編劉江老師致開幕詞。然後是北理工的金旭亮老師講解.Net 4.0的新特性。金老師首先講解了.Net 1.0到.Net
Time of Update: 2018-12-07
// Generated by Reflector from E:\CodeServer\Dll\Cfsns.CommonTools.dllnamespace Cfsns.Common.Tools.WebControlExtension{ using Cfsns.Common.Tools; using Cfsns.Common.Tools.EnumExtension; using System; using System.Collections.Generic;
Time of Update: 2018-12-07
using System;using System.Net;using System.Text;using System.Text.RegularExpressions;class Program{ // 擷取網頁的HTML內容,根據網頁的charset自動判斷Encoding static string GetHtml(string url) { return GetHtml(url, null); } // 擷取網頁的HTML內容,指定Encoding static str
Time of Update: 2018-12-07
轉自Matrix67's Blog:http://www.matrix67.com/blog/archives/978 你能不能想出這樣一個函數f,它的定義域和範圍都是R,並且對於任意小的區間l=(u,v),這個函數都能把(u,v)滿射到整個R上。換句話說,是否存在這樣的函數f(x),對於任意一個實數t以及任意一個區間(u,v),總存在一個x滿足u<x<v且f(x)=t。 首先,注意到函數h(x)=tan( pi*(x-1/2) )
Time of Update: 2018-12-07
表單特性1. 記住表格版面配置2. Inquiry 查詢3. 控制項4. 多國語言5 Clone 複製6 Export/Import 通用匯入匯出7 Series code 序號管理 記住表格版面配置當表單包含Grid,TreeView控制項時,表單在儲存時會記住它的布局,在下次表單重新開啟時,自動載入布局設定Grid的設定包括,列的順序,分組,顯示的欄位,過濾TreeView的設定包括,節點的展開狀態 查詢
Time of Update: 2018-12-07
SELECT 欄位序號 = a.colorder, 欄位名 = a.name, 標識 = case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end, 主鍵 = case when exists(SELECT 1 FROM sysobjects where xtype='PK' and parent_obj=a.id and name in (
Time of Update: 2018-12-07
來源:http://www.cnblogs.com/yinyueyouge/archive/2009/05/25/1488921.html原題說的自變數是一個 32 位元的有符號整數,這裡擴充之,對不同的定義值和範圍進行討論。設計一個函數 f,使得 f(f(x)) = -x 這裡 f(x) 的定義值和範圍都是集合 A。(1)如果 A 是複數集 C,則令 f(x) = i * x 即可,其中 i 是虛數單位,滿足 i * i = -1。(2)如果 A 是整數集 Z,則令f(x) = 0,
Time of Update: 2018-12-07
var j=$('#div').html();和 var j='<div>我是一個javascript的string的對象</div>';這樣兩個對象都是javascript中的string類型,而var
Time of Update: 2018-12-07
DECLARE @TableName VARCHAR(50),@sql NVARCHAR(MAX),@OrderID VARCHAR(50) ,@sql2 NVARCHAR(MAX);SET @TableName = 'Orders ';SET @OrderID = N'10251';SET @sql = 'SELECT * FROM '+QUOTENAME(@TableName) + ' WHERE OrderID = '+CAST(@OrderID AS VARCHAR(50)) + '
Time of Update: 2018-12-07
在一些沒有辦法輸入文字提示的標籤中可以使用lable來作為該標籤的提示,也可以使用lable來觸發某個標籤的預設click事件(若且唯若只能觸發click事件)例如: <span id="spanTest" onclick="alert(1)" >fffffff</span> <label
Time of Update: 2018-12-07
程式碼片段1: private static long l4 = (long)1024 * 1024 * 1024 * 1024; private static long l3 = (long)1024 * 1024 * 1024; private static long l2 = (long)1024 * 1024; public static string FileTotalSize(long fileSize) {
Time of Update: 2018-12-07
在CSS中,讓元素隱藏(指螢幕範圍內肉眼不可見)的方法很多,有的佔據空間,有的不佔據空間;有的可以響應點擊,有的不能響應點擊。{ display: none; /* 不佔據空間,無法點擊 */ }{ visibility: hidden; /* 佔據空間,無法點擊 */ }{ position: absolute; top: -999em; /* 不佔據空間,無法點擊 */ }{ position: relative; top: -999em; /* 佔據空間,無法點擊 */ }{