我正在尝试在var MySearch = (function($) {
var $search = $('.search'),
searchDelay = 500,
keysToIgnore = [8, 16, 17, 18, 27, 32, 37, 38, 39, 40, 91, 191, 220]; // space, esc, bkspc, ctrl, alt, cmd, arrows, /\
function init() {
$search.on('keyup', function(e) {
if (keysToIgnore.indexOf(e.keyCode) == -1) {
// FIXME: this isn't actually executing the passed liveSearch fn
debounce(liveSearch, searchDelay);
// This executes liveSearch, but doesnt debounce
// debounce(liveSearch, searchDelay)();
}
});
}
function liveSearch() {
console.log("searching:", $search.val());
}
// Remy's debounce func:
// https://remysharp.com/2010/07/21/throttling-function-calls
function debounce(fn, delay) {
console.log("debouncing for", delay);
var timer = null;
return function () {
var context = this,
args = arguments;
clearTimeout(timer);
timer = setTimeout(function () {
fn.apply(context, args);
}, delay);
};
}
return {
init: init
};
}(jQuery));
jQuery(function() {
MySearch.init();
});
中设置水晶报告的标题,但我一直显示错误。
我想设置文本的参数字段名为VB6
。
但是,运行此代码时,会出现错误
名称无效
txtTitle
导致错误的原因是什么?
答案 0 :(得分:0)
Crystal正在寻找"参数"类型字段名为" txtTitle"它找不到它。我通常会为此目的使用公式,换句话说," txtTitle"将是报告中的公式,并定义和/或初始化为stringVar
答案 1 :(得分:0)
尝试使用这种方式:
( C x 6 )+( H x 12 )+( O x 6 )
祝你好运!