Created
February 26, 2013 00:03
-
-
Save maxwellE/5034553 to your computer and use it in GitHub Desktop.
example for jia
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ajax call | |
req = $.get('/get_assets',{company_id: $(this).dataset.company}); | |
req.success(function(data){ | |
JST['template name'] | |
assets: data | |
}) | |
//template call | |
<img src="{{it.assets.pic1}}"<img> | |
// click_event | |
$(this).dataSet.template_name | |
{ | |
"template_name":"first", | |
"company": 1 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment