本文整理匯總了TypeScript中@dojo/framework/core/util.uuid函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript uuid函數的具體用法?TypeScript uuid怎麽用?TypeScript uuid使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了uuid函數的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: clickDate
function clickDate(remote: Remote) {
return remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#calendar`)
.setFindTimeout(5000)
.findByCssSelector(firstDayCssSelector())
.click()
.sleep(DELAY)
.end();
}
示例2: openYearPicker
function openYearPicker(remote: Remote) {
return remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#calendar`)
.setFindTimeout(5000)
.findByClassName(css.yearTrigger)
.click()
.sleep(DELAY)
.end();
}
示例3: getPage
function getPage(test: Test) {
const { browserName = '' } = test.remote.environmentType!;
if (browserName.toLowerCase() === 'microsoftedge') {
test.skip('example page currently doesn\'t work in edge.');
}
const remote: Remote = test.remote;
return remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#range-slider`)
.setFindTimeout(5000);
}
示例4: openSlidePane
function openSlidePane(remote: Remote, alignRight?: boolean) {
let promise = remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#slide-pane`)
.setFindTimeout(5000)
.findById('underlay')
.click()
.end();
if (alignRight) {
promise = promise
.findById('alignRight')
.click()
.end();
}
return promise
.findById('button')
.click()
.end()
.sleep(DELAY);
}
示例5: getPage
function getPage(remote: Remote) {
return remote
.get(`http://localhost:9000/_build/common/example/?id=${uuid()}#label`)
.setFindTimeout(5000);
}
示例6: constructor
constructor() {
super();
this._uuid = uuid();
}
示例7: addTodo
export function addTodo() {
return { type: 'ADD_TODO', payload: { id: uuid() }};
}