您好我有一個表與下面的結構: create table prices(
id int not null,
mini float not null,
maxi float not null,
primary key (id)
);
我選擇其是一個特定的範圍內的行的ID。 下面搗鼓不言自明:http://sqlfiddle.com/#!2/5885d/2
我寫了一個代表一些計算的單子。現在,我想定義如何計算應該是sequenced。所以,我要定義>>=。但是,流量的控制迫使我把注意力集中在a的conrete類型上。我的意思是: m >>= f =
a <- m
case a of
(ParticularParameterA) -> doSomething
..........
它是否正確的解決方案?
我有下面的代碼片段嵌入到我的一些divs,所以當這些div被點擊某個單選按鈕被檢查。 onclick="document.g1.city[0].checked=true;"
不過,我想上面的調用轉換函數調用象下面這樣: onclick="checkRadioButton(city[0]);"
該函數將是這樣的 function checkRadioButton(input){
d