Skip to content

Instantly share code, notes, and snippets.

@xyqfer
Created October 2, 2013 07:59
Show Gist options
  • Save xyqfer/6790406 to your computer and use it in GitHub Desktop.
Save xyqfer/6790406 to your computer and use it in GitHub Desktop.
检测 多背景
tests['multiplebgs'] = function() {
setCss('background:url(https://),url(https://),red url(https://)');
return (/(url\s*\(.*?){3}/).test(mStyle.background);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment