Skip to content

Instantly share code, notes, and snippets.

@summyer
Created December 26, 2017 10:40
Show Gist options
  • Save summyer/e813a01c3b4a2e206b3916e60043939d to your computer and use it in GitHub Desktop.
Save summyer/e813a01c3b4a2e206b3916e60043939d to your computer and use it in GitHub Desktop.
jq、js、css片段
//onmouseover="mouseOver(this,'#tip1','${community.communityAddress}');"
//onmouseout="mouseOut(this);"
function mouseOver(t, select, data) {
if (data.length < 25) {
return;
}
var index = layer.tips(data, select, {
tips: [3, '#3595CC'],
time: 40000000000,
maxWidth: 350
});
$(t).data("index", index);
}
function mouseOut(t) {
layer.close($(t).data("index"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment