var dict = {
91 : "17 850",
183 : "35 700"
};
$("body").mousemove(function () {
if($("#franshuza-car-1").css("visibility") == "visible")
{
var key = parseInt($("#slider div").css("width"));
$("#clean-money-after").text(dict[key]);
}
});
LIKE
The left hand expression equals the right-hand expression: ? and * are allowed as wildcard characters, where ? matches 1 character and * matches 0 or more characters.
- (id)initWithContentsOfURL:(NSURL *)url
- (BOOL)parse
backgroundWorker.DoWork += (sender, e) => { ... };
backgroundWorker.DoWork += delegate { ... };
1 | 1024 | record1
2 | 2048 | record2
3 | 4096 | record3
1 | 3072 | record1
2 | 2048 | record2
3 | 4096 | record3
таким образом мы поменяли только одну записьSELECT DATE_FORMAT(date, "%d.%m.%Y") as dayOrder,
CASE WHEN status = 0 THEN COUNT(*) ELSE 0 END as new,
CASE WHEN status = 1 THEN COUNT(*) ELSE 0 END as confirmed,
CASE WHEN status = 2 THEN COUNT(*) ELSE 0 END as refusal
FROM orders
GROUP BY DATE_FORMAT(date, "%d.%m.%Y")
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
CGFloat height = 0;
height = 20; //высота от верхнего края ячейки до titleView
if (есть message) height += <посчитать высоту текста> + <отступ после текста>;
if (есть image) height += <посчитать высоту image> + <отступ после image>;
return height;
}
var v = new
{
token = token,
method = "abc",
param = new Dictionary< String, List<String> >() { { "data", new List<String>() { "nokia" } } },
locale = "ru"
};
json = jss.Serialize( v );
var a = [{'nom' : '1', 'test' :'test1', 'desc' : 'desc1'},
{'nom' : '2', 'test' : 'test2', 'desc' : 'desc2'},
...,
{'nom' : 'n', 'test' : 'testn', 'desc' : 'descn'}
];
var dict = {};
for (index = 0; index < a.length; ++index) {
var key = a[index].nom + "";
if (key in dict) { } else
{
dict[key] = [];
}
dict[key].push(a[index].test + ' - ' + a[index].desc);
}