KRL中有没有一个内置的函数来生成UUID (或类似的东西)的GUID?
发布于 2011-04-21 00:29:08
我已经创建了一个模块,它包装了一个you服务,可能会让您停滞不前:UUID Module
像这样使用:
ruleset a8x165 {
meta {
name "UUID Module Example"
description <<
Example use of the UUID Module
>>
author "Sam Curren"
logging off
use module a8x164 alias uuid
}
dispatch {}
global {}
rule first_rule {
select when pageview ".*" setting ()
pre {
testuuid = uuid:new_uuid();
}
notify("Hello World", "This is a UUID: #{testuuid}");
}
}https://stackoverflow.com/questions/5725444
复制相似问题