本文整理汇总了TypeScript中fingerprintjs2.get函数的典型用法代码示例。如果您正苦于以下问题:TypeScript get函数的具体用法?TypeScript get怎么用?TypeScript get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: test_get_screen_options
function test_get_screen_options() {
const options: fingerprint2.Options = {
screen: {
detectScreenOrientation: true,
},
};
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:8,代码来源:fingerprintjs2-tests.ts
示例2: test_get_plugins_options
function test_get_plugins_options() {
const options: fingerprint2.Options = {
plugins: {
sortPluginsFor: [/foo/i],
excludeIE: true,
},
};
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:9,代码来源:fingerprintjs2-tests.ts
示例3: test_get_audio_options
function test_get_audio_options() {
const options: fingerprint2.Options = {
audio: {
timeout: 10,
excludeIOS11: true,
},
};
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:9,代码来源:fingerprintjs2-tests.ts
示例4: test_get_fonts_options
function test_get_fonts_options() {
const options: fingerprint2.Options = {
fonts: {
swfContainerId: 'swfContainerId',
swfPath: 'pathToSwf',
userDefinedFonts: ['font1', 'font2'],
extendedJsFonts: true,
},
};
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:11,代码来源:fingerprintjs2-tests.ts
示例5: test_get_extraComponents_options
function test_get_extraComponents_options() {
const options: fingerprint2.Options = {
extraComponents: [
{
key: 'foo',
getData(done, options) {
// $ExpectType (value: any) => void
done;
// $ExpectType Options
options;
done('foo');
},
pauseBefore: false,
},
],
};
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:19,代码来源:fingerprintjs2-tests.ts
示例6: test_get_excludes_options
function test_get_excludes_options() {
let options: fingerprint2.Options;
options = { excludes: { userAgent: true } };
options = { excludes: { language: true } };
options = { excludes: { colorDepth: true } };
options = { excludes: { deviceMemory: true } };
options = { excludes: { pixelRatio: true } };
options = { excludes: { hardwareConcurrency: true } };
options = { excludes: { screenResolution: true } };
options = { excludes: { availableScreenResolution: true } };
options = { excludes: { timezoneOffset: true } };
options = { excludes: { timezone: true } };
options = { excludes: { sessionStorage: true } };
options = { excludes: { localStorage: true } };
options = { excludes: { indexedDb: true } };
options = { excludes: { addBehavior: true } };
options = { excludes: { openDatabase: true } };
options = { excludes: { cpuClass: true } };
options = { excludes: { platform: true } };
options = { excludes: { doNotTrack: true } };
options = { excludes: { plugins: true } };
options = { excludes: { canvas: true } };
options = { excludes: { webgl: true } };
options = { excludes: { webglVendorAndRenderer: true } };
options = { excludes: { adBlock: true } };
options = { excludes: { hasLiedLanguages: true } };
options = { excludes: { hasLiedResolution: true } };
options = { excludes: { hasLiedOs: true } };
options = { excludes: { hasLiedBrowser: true } };
options = { excludes: { touchSupport: true } };
options = { excludes: { fonts: true } };
options = { excludes: { fontsFlash: true } };
options = { excludes: { audio: true } };
options = { excludes: { enumerateDevices: true } };
fingerprint2.get(options, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:38,代码来源:fingerprintjs2-tests.ts
示例7: test_get_with_options
function test_get_with_options() {
fingerprint2.get({ excludes: { userAgent: true } }, defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:3,代码来源:fingerprintjs2-tests.ts
示例8: test_get_default_settings
function test_get_default_settings() {
fingerprint2.get(defaultCallback);
}
开发者ID:CNBoland,项目名称:DefinitelyTyped,代码行数:3,代码来源:fingerprintjs2-tests.ts
注:本文中的fingerprintjs2.get函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论